Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ea764a7

Browse files
committedFeb 16, 2019
[Makefile] Use new DOCKER_IMG and add server rule
+ DOCKER_IMG now points to the commonlispbr/emacs our own image (which is based on my environment) + make server open a local HTTP static server to visualize the modifications (test locally)
1 parent c923ad4 commit ea764a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ EMACS_LOAD := -l $(EMACS_INIT)
33
EMACS_FLAGS := --batch --kill $(EMACS_LOAD)
44
ORG_FILES := $(wildcard *.org)
55
HTML_FILES := $(patsubst %.org, %.html, $(ORG_FILES))
6-
DOCKER_IMG := ryukinix/lerax
6+
DOCKER_IMG := commonlispbr/emacs
77
USER := $(shell id -u):$(shell id -g)
88
DOCKER_RUN := docker run -w /tmp \
99
-v $(shell pwd):/tmp \
@@ -24,5 +24,8 @@ shell:
2424
@$(DOCKER_RUN) $(DOCKER_IMG) $< $(EMACS_FLAGS) -f org-html-export-to-html
2525
@$(DOCKER_RUN) --entrypoint=/bin/chown $(DOCKER_IMG) $(USER) "$*.html"
2626

27+
server:
28+
python3 -m http.server 8000
29+
2730
clean:
2831
rm -rf *.html

0 commit comments

Comments
 (0)
Please sign in to comment.