summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 35867ad..5aac59a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,14 @@
-all: clean chat.pb.go book.pb.go goimports vet
+all: goimports vet
+
+generate: clean
+ go mod init
+ go mod tidy
+ go generate
+
+go-generate:
+ rm -f *.pb.go *.patch
+
+# all: clean chat.pb.go book.pb.go goimports vet
goimports:
goimports -w *.go