summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2024-01-19 21:11:58 -0500
committerBrian Cully <bjc@spork.org>2024-01-19 21:12:17 -0500
commit6702fe237570428884840abb4fbefab9cd40bc29 (patch)
tree152d37b39eeb2eb2552ecbfea71e0c1e5d55e3e0 /Makefile
parent8be3b0beac09c396bed2dea989f03f7cbf42a436 (diff)
downloadfav-6702fe237570428884840abb4fbefab9cd40bc29.tar.gz
fav-6702fe237570428884840abb4fbefab9cd40bc29.zip
move static files to site directory
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) $<