summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-07 13:03:42 -0600
committerJeff Carr <[email protected]>2024-11-07 13:03:42 -0600
commit1b7db666f166ce375a377858404d9108a81e0e76 (patch)
treea63a5821c452e3ff2ef928a4084e5c427045b6a4 /Makefile
parentd6f9401f6153abeb5b5ab1df61355569fc9d5a71 (diff)
update argv code
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 85844a9..d94a15f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,13 @@
+VERSION = $(shell git describe --tags)
+
all:
- GO111MODULE=off go build -v -x
+ GO111MODULE=off go build -v -x \
+ -ldflags "-X main.VERSION=${VERSION}"
+ ./helloworld
+
+install:
+ GO111MODULE=off go install -v -x \
+ -ldflags "-X main.VERSION=${VERSION}"
./helloworld
gocui: