30 lines
608 B
Makefile
30 lines
608 B
Makefile
# 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: vet goimports forgeConfig.pb.go uuid.pb.go patch.pb.go vet
|
|
|
|
vet:
|
|
@GO111MODULE=off go vet
|
|
@echo this go library package builds okay
|
|
|
|
# autofixes your import headers in your golang files
|
|
goimports:
|
|
goimports -w *.go
|
|
|
|
clean:
|
|
rm -f *.pb.go
|
|
-rm -f go.*
|
|
|
|
forgeConfig.pb.go: forgeConfig.proto
|
|
autogenpb --proto forgeConfig.proto
|
|
|
|
uuid.pb.go: uuid.proto
|
|
autogenpb --proto uuid.proto
|
|
|
|
patch.pb.go: patch.proto
|
|
autogenpb --proto patch.proto
|