summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Cully <bjc@spork.org>2025-12-15 14:16:05 -0500
committerBrian Cully <bjc@spork.org>2025-12-15 14:18:35 -0500
commit58756e30ac4655302f52e6d3adc59026ac615178 (patch)
tree721a967efca15ac4814bcbd173b2f2c09e60bc3f /Makefile
parent4bf20e3dd46ba31bfe1b5c2fb4993eb51e41d902 (diff)
downloadautomathon-58756e30ac4655302f52e6d3adc59026ac615178.tar.gz
automathon-58756e30ac4655302f52e6d3adc59026ac615178.zip
make: add deploy rule
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)"