aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: efc344be79562d558e37fb06722da72ef3375a50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
rust:
	wasm-pack build --target web --out-dir $(BUILDDIR)/rust $(WASMPACKFLAGS) -- --color always  --config build.rustflags="'-C target-feature=+simd128'"

test:
	cargo test --color always -- --nocapture

build: rust

serve: build
	(cd $(BUILDDIR) && python -m http.server 8118)

deploy: build
	rsync -avz --delete --exclude='*~' "$(BUILDDIR)"/ "$(HOST)"