34 lines
636 B
Makefile
34 lines
636 B
Makefile
VERSION = $(shell git describe --tags)
|
|
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
|
|
|
|
test: goimports build
|
|
./example
|
|
|
|
modproto: clean withMutex goimports vet build
|
|
./example
|
|
|
|
rawproto: clean withoutMutex goimports vet build
|
|
./example
|
|
|
|
vet:
|
|
@GO111MODULE=off go vet
|
|
|
|
build:
|
|
GO111MODULE=off go build -v
|
|
|
|
withMutex:
|
|
../autogenpb --proto fruit.proto --package main
|
|
../autogenpb --proto file.proto --package main
|
|
|
|
withoutMutex:
|
|
../autogenpb --proto fruit.proto --package main --mutex=false
|
|
../autogenpb --proto file.proto --package main --mutex=false
|
|
|
|
goimports:
|
|
goimports -w *.go
|
|
|
|
clean:
|
|
-rm -f go.*
|
|
-rm -f *.pb.go
|
|
-rm -f testfiles
|