autogenpb/example/Makefile

23 lines
344 B
Makefile

VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
full: clean auto goimports vet build
./example
vet:
@GO111MODULE=off go vet
build:
GO111MODULE=off go build
auto:
../autogenpb --proto fruit.proto --package main --mutex
goimports:
goimports -w *.go
clean:
-rm -f go.*
-rm -f *.pb.go
-rm -f testfiles