BUILDDIR=site
HOST=coleridge:public_html/automathon
# --dev may be useful, but it makes things a lot slower and bigger
WASMPACKFLAGS=--no-pack --no-typescript
# the --target is currently necessary or firefox will return
# "disallowed mime type" -bjc 7-aug-2025
build:
wasm-pack build --target web --out-dir $(BUILDDIR)/wasm $(WASMPACKFLAGS)
serve: build
(cd $(BUILDDIR) && python -m http.server 8118)
deploy: build
rsync -avz --delete --exclude='*~' "$(BUILDDIR)"/ "$(HOST)"