diff options
| author | Jeff Carr <[email protected]> | 2025-10-09 01:04:09 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-09 01:04:09 -0500 |
| commit | ca7fb100efeda7b58a955acea3f342898cf29d61 (patch) | |
| tree | 666683a0d759f01044ed3fedb5c8f7b8036ce3bd /Makefile | |
| parent | b82e6b44dd7fa0522fa124314aa5a48d067c2976 (diff) | |
common protobuf makefilev0.0.4
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -1,10 +1,16 @@ -all: goimports vet +all: filetype.pb.go goimports vet + @echo This GO code passes the compile checks -# run this the first time here -proto:clean autogenpb goimports vet - -autogenpb: +# 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 filetype.proto + make goimports vet + +filetype.pb.go: filetype.proto + make generate generate: clean go mod init @@ -14,15 +20,13 @@ 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.* - -go-mod-clean purge + go-mod-clean purge |
