virtbuf/Makefile

46 lines
918 B
Makefile
Raw Normal View History

# You must use the current google protoc-gen-go
#
# cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go
# go install
2024-12-01 18:41:00 -06:00
all: droplet.pb.go hypervisor.pb.go event.pb.go experiments.pb.go vet
2024-12-01 18:41:00 -06:00
vet:
@GO111MODULE=off go vet
@echo this go library package builds okay
# autofixes your import headers in your golang files
goimports:
goimports -w *.go
2024-10-18 20:58:15 -05:00
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
clean:
rm -f *.pb.go
-rm -f go.*
2024-10-18 20:58:15 -05:00
droplet.pb.go: droplet.proto
2024-12-01 18:41:00 -06:00
autogenpb --proto droplet.proto --mutex
hypervisor.pb.go: hypervisor.proto
2024-12-01 18:41:00 -06:00
autogenpb --proto hypervisor.proto --mutex
event.pb.go: event.proto
2024-12-01 18:59:34 -06:00
autogenpb --proto event.proto --mutex --no-sort
experiments.pb.go: experiments.proto
2024-12-01 18:41:00 -06:00
autogenpb --proto experiments.proto --no-marshal --no-sort
2024-10-18 20:58:15 -05:00
deps:
apt install golang-goprotobuf-dev
apt install protobuf-compiler
push:
git pull
git add --all
git commit -a -s
git push