From a15bace9ba93ecf9118b3188276dd7222850c641 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 9 Oct 2025 01:04:42 -0500 Subject: common protobuf makefile --- Makefile | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index c8a113e..a4cdff4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ -all: generate +all: widget.pb.go goimports vet + @echo This GO code passes the compile checks + +widget.pb.go: widget.proto + make generate generate: clean go mod init @@ -8,16 +12,13 @@ generate: clean go-generate: rm -f *.pb.go *.patch -proto: - autogenpb --proto widget.proto - autogenpb --proto table.proto +goimports: + goimports -w *.go vet: @GO111MODULE=off go vet - @echo this go library builds okay - -goimports: - goimports -w *.go clean: - rm -f go.* *.pb.go + rm -f *.pb.go *.patch + -rm -f go.* + go-mod-clean purge -- cgit v1.2.3