aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 950f9cd81f6f8502df93defe86e9c5b35d3c4428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SRCS := $(shell find . -name '*.go')

.PHONY: all
all: zk

zk: $(SRCS)
	go build .

.PHONY: test
test:
	go test -v ./...

.PHONY: install
install: zk
	@install -vm0755 zk /usr/bin/zk

.PHONY: uninstall
uninstall:
	@rm -vrf /usr/bin/zk

.PHONY: clean
clean:
	rm -rf zk