From 6702fe237570428884840abb4fbefab9cd40bc29 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Fri, 19 Jan 2024 21:11:58 -0500 Subject: move static files to site directory --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Makefile') 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) $< -- cgit v1.2.3