summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile19
1 files changed, 7 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index a1e0d3f..d717950 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,8 @@
-# You must use the current protoc-gen-go
-#
-# go-clone --go-src google.golang.org/protobuf
-# cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go
-# go install
+all: httpRequest.pb.go goimports vet
+ @echo This GO code passes the compile checks
-
-all: goimports vet
+httpRequest.pb.go: httpRequest.proto
+ make generate
generate: clean
go mod init
@@ -15,14 +12,12 @@ generate: clean
go-generate:
rm -f *.pb.go *.patch
-vet:
- @GO111MODULE=off go vet
- @echo this go library package builds okay
-
-# autofixes your import headers in your golang files
goimports:
goimports -w *.go
+vet:
+ @GO111MODULE=off go vet
+
clean:
rm -f *.pb.go *.patch
-rm -f go.*