2025-01-08 19:58:29 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
|
|
|
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
|
|
|
|
|
2025-01-09 17:15:53 -06:00
|
|
|
test: goimports build
|
|
|
|
./example
|
|
|
|
|
2025-01-09 16:02:53 -06:00
|
|
|
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:
|
2025-01-09 20:08:22 -06:00
|
|
|
GO111MODULE=off go build -v
|
2025-01-08 19:58:29 -06:00
|
|
|
|
2025-01-09 16:02:53 -06:00
|
|
|
withMutex:
|
2025-01-10 07:40:24 -06:00
|
|
|
../autogenpb --proto fruit.proto --package main
|
|
|
|
../autogenpb --proto file.proto --package main
|
2025-01-08 19:58:29 -06:00
|
|
|
|
2025-01-09 16:02:53 -06:00
|
|
|
withoutMutex:
|
2025-01-10 07:40:24 -06:00
|
|
|
../autogenpb --proto fruit.proto --package main --mutex=false
|
|
|
|
../autogenpb --proto file.proto --package main --mutex=false
|
2025-01-09 16:02:53 -06:00
|
|
|
|
2025-01-08 19:58:29 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f go.*
|
|
|
|
-rm -f *.pb.go
|
|
|
|
-rm -f testfiles
|