29 lines
540 B
Makefile
29 lines
540 B
Makefile
|
VERSION = $(shell git describe --tags)
|
||
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||
|
|
||
|
run: clean test.pb.go goimports vet
|
||
|
|
||
|
vet:
|
||
|
@GO111MODULE=off go vet
|
||
|
@echo this go library package builds okay
|
||
|
|
||
|
goimports:
|
||
|
goimports -w *.go
|
||
|
|
||
|
redomod:
|
||
|
rm -f go.*
|
||
|
GO111MODULE= go mod init
|
||
|
GO111MODULE= go mod tidy
|
||
|
|
||
|
reset:
|
||
|
# clear your terminal
|
||
|
reset
|
||
|
|
||
|
clean:
|
||
|
-rm -f *.pb.go
|
||
|
|
||
|
test.pb.go: test.proto
|
||
|
cd ~/go/src && protoc --go_out=. --proto_path=go.wit.com/apps/autogenpb/testautogen \
|
||
|
--go_opt=Mtest.proto=go.wit.com/apps/autogenpb/testautogen \
|
||
|
test.proto
|