summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-03 11:26:50 -0500
committerJeff Carr <[email protected]>2025-10-03 11:26:50 -0500
commitc0544ed4a139ba47bd879a2405bfa73e4c10328a (patch)
tree7199d5cdfd1308a79b682505e39f6fa3753777be /Makefile
parent82cc40997fa54e5500670e2f5151b706436c1245 (diff)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 266aebb..ddde8a2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
.PHONY: debian
VERSION = $(shell git describe --tags)
-DATE = $(shell date +%Y.%m.%d)
+BUILDTIME = $(shell date +%s)
run: clean goimports vet install
go-deb --gui andlabs gui
@@ -21,12 +21,12 @@ auto-build: build
build: goimports vet
-rm resources/*.so
touch resources/blank.so
- GO111MODULE="off" go build -v \
- -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}"
+ GO111MODULE=off go build -v -x \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
install: goimports
- GO111MODULE="off" go install -v \
- -ldflags "-X main.VERSION=${VERSION} -X main.DATE=${DATE} -X gui.GUIVERSION=${VERSION}"
+ GO111MODULE=off go install \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
goimports:
goimports -w *.go