summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 5eed711..3618baa 100644
--- a/Makefile
+++ b/Makefile
@@ -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) $<