summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-09 20:23:52 -0600
committerJeff Carr <[email protected]>2025-01-09 20:23:52 -0600
commitb9fec2e81487b4948a6e221d3768ea4dfb12de42 (patch)
treed0acd5a81617efbc260e56589679103b70b65395 /Makefile
parent3f81cca18c6f55f303bddc5c4d992cd53894726e (diff)
can't sort structs yet
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