aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2023-01-27 14:55:13 +0800
committerGuangxiong Lin <[email protected]>2023-01-27 14:55:13 +0800
commit934e357f4511a0b0e71060baaa4d7cb29c7b568d (patch)
tree4398395cd5da4594da98d50c427d55ee8b70214f
parenta4f52050cab97dc72a7526485ac8ef48e28ae6ca (diff)
downloadzk-master.tar.gz
zk-master.tar.bz2
zk-master.zip
Update MakefileHEADmaster
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e586cd7..950f9cd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,9 @@
+SRCS := $(shell find . -name '*.go')
+
.PHONY: all
all: zk
-zk: main.go command.go go.mod go.sum map.go set.go doc.go
+zk: $(SRCS)
go build .
.PHONY: test
@@ -15,3 +17,7 @@ install: zk
.PHONY: uninstall
uninstall:
@rm -vrf /usr/bin/zk
+
+.PHONY: clean
+clean:
+ rm -rf zk