diff options
| -rw-r--r-- | Makefile | 32 |
1 files changed, 8 insertions, 24 deletions
@@ -1,17 +1,14 @@ -# 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: generate goimports vet +all: package.pb.go goimports vet + @echo This GO code passes the compile checks proto-renumber: clean autogenpb --renumber --proto package.proto autogenpb --renumber --proto machine.proto make goimports vet +package.pb.go: package.proto + make generate + generate: clean go mod init go mod tidy @@ -20,26 +17,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 -redomod: - rm -f go.* - GO111MODULE= go mod init - GO111MODULE= go mod tidy +vet: + @GO111MODULE=off go vet clean: - rm -f *.pb.go + rm -f *.pb.go *.patch -rm -f go.* go-mod-clean purge - -package.pb.go: package.proto - autogenpb --proto package.proto - -machine.pb.go: machine.proto - autogenpb --proto machine.proto |
