From 1c0234a442a428df859d28f718ca207a8f859ba5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 29 Nov 2024 09:14:30 -0600 Subject: make test Signed-off-by: Jeff Carr --- testautogen/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 testautogen/Makefile (limited to 'testautogen/Makefile') diff --git a/testautogen/Makefile b/testautogen/Makefile new file mode 100644 index 0000000..82e2b69 --- /dev/null +++ b/testautogen/Makefile @@ -0,0 +1,28 @@ +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 -- cgit v1.2.3