summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index fc8683e..3d7a726 100644
--- a/Makefile
+++ b/Makefile
@@ -3,18 +3,23 @@ BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
test: goimports build test
-full: clean goimports auto vet install
+full: clean goimports auto vet build
vet:
@GO111MODULE=off go vet
@echo this go binary package should build okay
-cleanbuild:
- rm -f auto.marshal.pb.go auto.sort.pb.go autogenpb
+# autogen uses autogen to build. keep a working copy somewhere
+recover:
+ make clean
+ ./autogenpb.last --proto file.proto --package main
+ make goimports
+ make build
build:
GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+ cp -f autogenpb autogenpb.${BUILDTIME}
bak:
mv -f autogenpb autogenpb.last