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