diff options
| author | Brian Cully <bjc@spork.org> | 2025-12-15 14:16:05 -0500 |
|---|---|---|
| committer | Brian Cully <bjc@spork.org> | 2025-12-15 14:18:35 -0500 |
| commit | 58756e30ac4655302f52e6d3adc59026ac615178 (patch) | |
| tree | 721a967efca15ac4814bcbd173b2f2c09e60bc3f | |
| parent | 4bf20e3dd46ba31bfe1b5c2fb4993eb51e41d902 (diff) | |
| download | automathon-58756e30ac4655302f52e6d3adc59026ac615178.tar.gz automathon-58756e30ac4655302f52e6d3adc59026ac615178.zip | |
make: add deploy rule
| -rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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)" |
