summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-15 10:51:45 -0600
committerJeff Carr <[email protected]>2024-11-15 10:51:45 -0600
commitff564380a71b607821de4eca4afa0865f3c7e51c (patch)
tree860fc04af74d5d95ae8321baf327a9e1ec6d412e /Makefile
parent2101ed1ae966834cd1d22d2e6ea1aff990e4a2e9 (diff)
fix ldflagsv0.22.9
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1e7f3b0..f758bec 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
.PHONY: debian
VERSION = $(shell git describe --tags)
+DATE = $(shell date +%Y.%m.%d)
run: build
./go-deb --repo go.wit.com/apps/autotypist
@@ -17,11 +18,11 @@ build:
touch resources/blank.so
-cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ # embed the toolkit plugins
GO111MODULE="off" go build -v \
- -ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}"
+ -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}"
install:
GO111MODULE="off" go install -v \
- -ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}"
+ -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}"
goimports:
goimports -w *.go