size: 452 B

1ZIGARGS = -Doptimize=ReleaseSafe -Dcpu=baseline
2
3build:
4 zig build $(ZIGARGS)
5
6watch:
7 zig build run --watch -- demo http://localhost:8000
8
9# TODO: write a simple zig server instead
10serve:
11 python -m http.server -b localhost -d demo 8000
12
13test:
14 zig build test --watch
15
16deploy: build
17 scp zig-out/bin/khoe root@khoe:/usr/local/bin/
18
19regen: deploy
20 ssh khoe "cd pub/khoe; KHOE_FULL_REGEN=1 ~/global-hooks/post-update"
21
22clean:
23 rm -rf zig-out .zig-cache