From 934e357f4511a0b0e71060baaa4d7cb29c7b568d Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 27 Jan 2023 14:55:13 +0800 Subject: Update Makefile --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3