1all: build
2
3build:
4 go generate
5 go build .
6
7# produce a build debugger friendly
8debug-build:
9 go generate
10 go build -gcflags=all="-N -l" .
11
12install:
13 go generate
14 go install .
15
16test:
17 go test -bench=. ./...
18
19pack-webui:
20 npm run --prefix webui build
21 go run webui/pack_webui.go
22
23# produce a build that will fetch the web UI from the filesystem instead of from the binary
24debug-webui:
25 go build -tags=debugwebui
26
27clean-local-bugs:
28 git for-each-ref refs/bugs/ | cut -f 2 | xargs -r -n 1 git update-ref -d
29 git for-each-ref refs/remotes/origin/bugs/ | cut -f 2 | xargs -r -n 1 git update-ref -d
30
31clean-remote-bugs:
32 git ls-remote origin "refs/bugs/*" | cut -f 2 | xargs -r git push origin -d
33
34.PHONY: build install test pack-webui debug-webui clean-local-bugs clean-remote-bugs