forgepb/Makefile

30 lines
604 B
Makefile
Raw Normal View History

2024-11-20 09:31:24 -06:00
# 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
2024-12-11 18:50:36 -06:00
all: goimports forgeConfig.pb.go uuid.pb.go patch.pb.go vet
2024-11-20 09:31:24 -06:00
2024-12-01 00:48:51 -06:00
vet:
@GO111MODULE=off go vet
@echo this go library package builds okay
2024-11-20 09:31:24 -06:00
# autofixes your import headers in your golang files
goimports:
goimports -w *.go
clean:
rm -f *.pb.go
-rm -f go.*
2024-11-28 08:35:39 -06:00
forgeConfig.pb.go: forgeConfig.proto
2024-11-30 15:33:53 -06:00
autogenpb --proto forgeConfig.proto
uuid.pb.go: uuid.proto
autogenpb --proto uuid.proto
2024-12-11 18:50:36 -06:00
patch.pb.go: patch.proto
autogenpb --proto patch.proto