summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3f7e55e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+all: autogenpb goimports vet
+ @echo This GO code passes the compile checks
+
+autogenpb:
+ autogenpb --proto key.proto
+
+generate: clean
+ go mod init
+ go mod tidy
+ go generate
+
+goimports:
+ goimports -w *.go
+
+vet:
+ @GO111MODULE=off go vet
+
+clean:
+ rm -f *.pb.go *.patch
+ -rm -f go.*
+ go-mod-clean purge