summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2024-01-19 20:35:36 -0500
committerBrian Cully <bjc@spork.org>2024-01-19 20:35:36 -0500
commit632dcab38d9c516f6cee447a70c06765e29526c0 (patch)
treeb0b1a7927735f6a50269c9fe5bb11a2bc335d460 /Makefile
parentf182e945ee05762b91549169ab39cf56044f0a79 (diff)
downloadfav-632dcab38d9c516f6cee447a70c06765e29526c0.tar.gz
fav-632dcab38d9c516f6cee447a70c06765e29526c0.zip
add javascript version
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5eed711
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+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))))"
+
+index.html: js-ver.org
+ $(ORGC) $<
+
+run: index.html
+ $(PYTHON3) -m http.server $(HTTP_IF) $(HTTP_PORT)