summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-10 07:40:24 -0600
committerJeff Carr <[email protected]>2025-01-10 07:40:24 -0600
commite07c6a35fd5d2ca1b3a6c09d9781d21f676f52f2 (patch)
treece7a4fd38fff09571739bedd5d6dd00d99cff4b7 /Makefile
parentd9e5edb3a8486bc884841137095dd910e42b3a98 (diff)
detect that autogenpb has already been run and exit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 26dfb7a..ffdafa2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
-full: clean auto goimports vet build test
+full: install clean auto goimports vet build test
@echo everything worked and the example ran
test: goimports build test
@@ -20,6 +20,7 @@ recover:
build:
GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+ # autogen uses autogen to build. keep a working copy somewhere
cp -f autogenpb autogenpb.${BUILDTIME}
bak: