From 1b7db666f166ce375a377858404d9108a81e0e76 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 7 Nov 2024 13:03:42 -0600 Subject: update argv code Signed-off-by: Jeff Carr --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') 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: -- cgit v1.2.3