summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-26 10:49:12 -0500
committerJeff Carr <[email protected]>2025-10-26 10:49:12 -0500
commitd22db5dabfc6f8330b38adedd0528192ae2d47d8 (patch)
tree725c410000f83009b1ce6a6d2da6712db082eb9c /Makefile
parent2a466a788a0f78dddce2ca544db6e34f0b8e2f12 (diff)
parent51027a1b04b3da1a81d617d16a07ac1242d90a81 (diff)
Merge branch 'jcarr' into develHEADmasterdevel
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 16 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ab46d8f..4a031b7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,19 @@
-all: generate vet
+VERSION = $(shell git describe --tags)
+BUILDTIME = $(shell date +%s)
+
+all: install
+
+go-build: goimports
+ GO111MODULE=off go build \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+
+install: goimports
+ GO111MODULE=off go install \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+
+install-verbose: goimports
+ GO111MODULE=off go install -v -x \
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
generate: clean
go mod init