summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 08d33b2..5d17ff0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,13 @@
+BUILDDIR=site
+HOST=coleridge:public_html/automathon
+
# the --target is currently necessary or firefox will return
# "disallowed mime type" -bjc 7-aug-2025
build:
- wasm-pack build --target web --out-dir site/wasm
+ wasm-pack build --target web --out-dir $(BUILDDIR)/wasm
serve: build
- (cd site && python -m http.server 8118)
+ (cd $(BUILDDIR) && python -m http.server 8118)
+
+deploy: build
+ rsync -avz --delete --exclude='*~' "$(BUILDDIR)"/ "$(HOST)"