From 19021a0787b4327200e6a99383b4881a395e8740 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 9 Oct 2025 01:04:49 -0500 Subject: common protobuf makefile --- Makefile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index a1e0d3f..d717950 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,8 @@ -# You must use the current protoc-gen-go -# -# go-clone --go-src google.golang.org/protobuf -# cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go -# go install +all: httpRequest.pb.go goimports vet + @echo This GO code passes the compile checks - -all: goimports vet +httpRequest.pb.go: httpRequest.proto + make generate generate: clean go mod init @@ -15,14 +12,12 @@ generate: clean go-generate: rm -f *.pb.go *.patch -vet: - @GO111MODULE=off go vet - @echo this go library package builds okay - -# autofixes your import headers in your golang files goimports: goimports -w *.go +vet: + @GO111MODULE=off go vet + clean: rm -f *.pb.go *.patch -rm -f go.* -- cgit v1.2.3