diff options
| author | Jeff Carr <[email protected]> | 2025-10-09 01:03:48 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-09 01:03:48 -0500 | 
| commit | 61d069ed565fe1b1731265cc79e360b7954d70f1 (patch) | |
| tree | 604e68e7b577637f301a8de8355de293c96f566c | |
| parent | 22269edf8a5314e9cb31e643ee1f5c4840abe8ba (diff) | |
common protobuf makefilev0.0.9
| -rw-r--r-- | Makefile | 30 | 
1 files changed, 19 insertions, 11 deletions
@@ -1,4 +1,16 @@ -all: goimports vet +all: bug.pb.go goimports vet +	@echo This GO code passes the compile checks + +# fixes your numbers if you move things around +# THIS TOTALLY BREAKS THE POINT OF PROTOBUF +# To work around that breaking, you must change the version +# also, all the wrapping code must support this. which it doesn't +proto-renumber: clean +	autogenpb --renumber --proto bug.proto +	make goimports vet + +bug.pb.go: bug.proto +	make generate  generate: clean  	go mod init @@ -6,19 +18,15 @@ generate: clean  	go generate  go-generate: -	rm -f *.pb.go - -vet: -	@GO111MODULE=off go vet -	@echo this go library builds okay +	rm -f *.pb.go *.patch  goimports:  	goimports -w *.go -proto: bug.pb.go - -bug.pb.go: bug.proto -	autogenpb --proto bug.proto +vet: +	@GO111MODULE=off go vet  clean: -	rm -f go.* *.pb.go +	rm -f *.pb.go *.patch +	-rm -f go.* +	go-mod-clean purge  | 
