aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-01-24 20:27:22 +0800
committerGuangxiong Lin <[email protected]>2023-01-24 20:27:22 +0800
commit104ee66f5930f4a37ac84538c29a291bf1d08f4f (patch)
treec663768184594207fd68533a773740d99956c865 /Makefile
parent3f6aeea8c795b8bff59c1a8b45700d7bc44da4b9 (diff)
downloadzk-104ee66f5930f4a37ac84538c29a291bf1d08f4f.tar.gz
zk-104ee66f5930f4a37ac84538c29a291bf1d08f4f.tar.bz2
zk-104ee66f5930f4a37ac84538c29a291bf1d08f4f.zip
Use cobra as command selector
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 45238f4..0d23689 100644
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,14 @@ all: zk
zk: main.go command.go go.mod go.sum map.go set.go doc.go
go build .
+.PHONY: test
+test:
+ go test ./...
+
.PHONY: install
install: zk
@install -vm0755 zk /usr/bin/zk
+.PHONY: uninstall
uninstall:
@rm -vrf /usr/bin/zk