summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8c79a60..c8547f9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,15 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%s)
-default: placement.pb.go install
+default: generate install
+
+generate: clean
+ go mod init
+ go mod tidy
+ go generate
+
+go-generate:
+ rm -f *.pb.go *.patch
build:
GO111MODULE=off go build \