summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-19 05:59:05 -0500
committerJeff Carr <[email protected]>2025-10-19 05:59:05 -0500
commita5ada1d59a8b56a033949a48af15bc74330cab07 (patch)
tree30b664f74e30faf782765e0f4a7dba46e8b917f8 /Makefile
parent7cfeaaa25c46d87919b5a61dd2338765f40fc23c (diff)
new argvv0.0.49
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 11377ae..6a6d340 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,8 @@
+.PHONY: build
+
+VERSION = $(shell git describe --tags)
+BUILDTIME = $(shell date +%s)
+
all: portmap.pb.go goimports vet
@echo This GO code passes the compile checks
@@ -17,15 +22,15 @@ gocui: build
build: goimports vet
GO111MODULE=off go build -v -x \
- -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME}"
install: goimports vet
GO111MODULE=off go install \
- -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME}"
install-verbose: goimports vet
GO111MODULE=off go install -v -x \
- -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
+ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME}"
goimports:
goimports -w *.go