summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-07 13:18:26 -0600
committerJeff Carr <[email protected]>2024-11-07 13:18:26 -0600
commit3203dfbb0ed5bffa9629e3755a562a40874d57ca (patch)
treefbb7660c18b09b7eddb592a17b75eb8269acae9c /Makefile
parent3be66547650097174b3e8aaf533cbee187f6bde9 (diff)
add standard argvv0.21.1
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 6dce3b4..8ea100b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,14 @@
+VERSION = $(shell git describe --tags)
+
+all:
all: build
reset
./basicwindow
build:
-ifeq ($(GO111MODULE),)
- echo no. you must use GO111MODULE to build here
- false
-else
-rm -f basicwindow
- go build -v -x
-endif
+ GO111MODULE=off go build -v -x \
+ -ldflags "-X main.VERSION=${VERSION}"
stderr: build
echo "writing to /tmp/basicwindow.out"