gitpb/Makefile

35 lines
759 B
Makefile
Raw Permalink Normal View History

2024-11-26 04:34:01 -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
all: goimports gitTag.pb.go goDep.pb.go repo.pb.go vet
2024-11-30 12:45:18 -06:00
2024-12-01 00:49:25 -06:00
vet:
@GO111MODULE=off go vet
@echo this go library package builds okay
2024-11-26 04:34:01 -06:00
# autofixes your import headers in your golang files
goimports:
goimports -w *.go
clean:
rm -f *.pb.go
-rm -f go.*
#refs.pb.go: refs.proto
# cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/lib/protobuf/gitpb \
# --go_opt=Mrefs.proto=go.wit.com/lib/protobuf/gitpb \
# refs.proto
gitTag.pb.go: gitTag.proto
2024-12-01 22:23:38 -06:00
autogenpb --proto gitTag.proto
goDep.pb.go: goDep.proto
2024-12-01 22:23:38 -06:00
autogenpb --proto goDep.proto
repo.pb.go: repo.proto
2024-12-01 22:23:38 -06:00
autogenpb --proto repo.proto