zoopb/Makefile

32 lines
595 B
Makefile
Raw Normal View History

2024-11-03 00:39:52 -05: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-01 18:18:11 -06:00
all: package.pb.go machine.pb.go vet
2024-11-03 00:39:52 -05:00
2024-12-01 18:18:11 -06:00
vet:
@GO111MODULE=off go vet
@echo this go library package builds okay
2024-11-03 00:39:52 -05:00
# autofixes your import headers in your golang files
goimports:
goimports -w *.go
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
clean:
rm -f *.pb.go
-rm -f go.*
package.pb.go: package.proto
2024-12-01 22:24:24 -06:00
autogenpb --proto package.proto
2024-11-15 20:59:55 -06:00
machine.pb.go: machine.proto
2024-12-01 22:24:24 -06:00
autogenpb --proto machine.proto