autogenpb/example/Makefile

26 lines
426 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)
full: clean goimports auto vet build
./testfiles
vet:
@GO111MODULE=off go vet
@echo this go binary package should build okay
build:
2025-01-09 12:54:04 -06:00
rm -f fruit.newsort.pb.go
2025-01-08 19:58:29 -06:00
GO111MODULE=off go build
2025-01-09 12:54:04 -06:00
./testfiles
2025-01-08 19:58:29 -06:00
auto:
2025-01-09 12:54:04 -06:00
../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