summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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