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