summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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"