diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -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" |
