autogenpb/example/Makefile

29 lines
483 B
Makefile
Raw Normal View History

2025-01-08 19:58:29 -06:00
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
modproto: clean withMutex goimports vet build
./example
rawproto: clean withoutMutex goimports vet build
2025-01-09 15:29:27 -06:00
./example
2025-01-08 19:58:29 -06:00
vet:
@GO111MODULE=off go vet
build:
GO111MODULE=off go build
withMutex:
../autogenpb --proto fruit.proto --package main --mutex
2025-01-08 19:58:29 -06:00
withoutMutex:
../autogenpb --proto fruit.proto --package main
2025-01-08 19:58:29 -06:00
goimports:
goimports -w *.go
clean:
-rm -f go.*
-rm -f *.pb.go
-rm -f testfiles