From 3203dfbb0ed5bffa9629e3755a562a40874d57ca Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 7 Nov 2024 13:18:26 -0600 Subject: add standard argv Signed-off-by: Jeff Carr --- Makefile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Makefile') 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" -- cgit v1.2.3