diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2,10 +2,10 @@ HTTP_PORT = 8000 HTTP_IF = -b :: PYTHON3 = python3 -ORGC = emacs -Q --batch --eval "(progn (require 'ob-tangle) (dolist (file command-line-args-left) (with-current-buffer (find-file-noselect file) (org-babel-tangle))))" +ORGC = emacs -Q --batch --eval "(progn (require 'ob-tangle) (dolist (file command-line-args-left) (with-current-buffer (find-file-noselect file) (let ((default-directory (expand-file-name \"site\" default-directory))) (org-babel-tangle)))))" -index.html: js-ver.org - $(ORGC) $< +run: site/index.html + cd site && $(PYTHON3) -m http.server $(HTTP_IF) $(HTTP_PORT) -run: index.html - $(PYTHON3) -m http.server $(HTTP_IF) $(HTTP_PORT) +site/index.html: js-ver.org + $(ORGC) $< |