virtbuf/Makefile

46 lines
867 B
Makefile

# You must use the current google protoc-gen-go
#
# cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go
# go install
all: droplet.pb.go hypervisor.pb.go event.pb.go experiment.pb.go goimports 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
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
clean:
rm -f *.pb.go
-rm -f go.*
droplet.pb.go: droplet.proto
autogenpb --proto droplet.proto
hypervisor.pb.go: hypervisor.proto
autogenpb --proto hypervisor.proto
event.pb.go: event.proto
autogenpb --proto event.proto
experiment.pb.go: experiment.proto
autogenpb --proto experiment.proto
deps:
apt install golang-goprotobuf-dev
apt install protobuf-compiler
push:
git pull
git add --all
git commit -a -s
git push