aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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