summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-07 18:46:00 -0500
committerJeff Carr <[email protected]>2025-10-07 18:46:00 -0500
commit855d73d3fcda349e336cd4aa5eaff2648c9dfab4 (patch)
treee52c337afd8e3b5f21d2307c354c1cc9de3c3b09 /Makefile
parent4ac9068e29207cc15b7ec5bfde8d0380339b2b1f (diff)
add "make generate"
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b159e53..ada11ab 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,15 @@
# cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go
# go install
-all: proto goimports vet
+all: generate goimports vet
+
+generate: clean
+ go mod init
+ go mod tidy
+ go generate
+
+go-generate:
+ rm -f *.pb.go *.patch
vet:
@GO111MODULE=off go vet