summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 13:40:07 -0600
committerJeff Carr <[email protected]>2024-11-15 13:40:07 -0600
commit76db985cf1c3ca4ff792b82f6209e00ba5679b58 (patch)
tree1872ea7783d1790d3bfce9e05295650e5c2e922a /Makefile
parentea96d4880eedd92d9c8228b84de028185ec941b2 (diff)
unstashed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 24726cb..2ef1093 100644
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,14 @@
VERSION = $(shell git describe --tags)
+BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
# create the go.mod and go.sum if this is a brand new repo
# REDOMOD = $(shell if [ -e go.mod ]; then echo go.mod; else echo no go mod; fi)
REDOMOD = $(shell if [ -e go.sum ]; then echo go.sum exists; else GO111MODULE= go mod init; GO111MODULE= go mod tidy; fi)
all:
- GO111MODULE=off go build -v -x -ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}"
- ./zood
+ GO111MODULE=off go build \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+ #./zood
./zood --version
# this is for release builds using the go.mod files