summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 1cd872b..3c55c85 100644
--- a/Makefile
+++ b/Makefile
@@ -3,12 +3,17 @@ all: build
./basicwindow
build:
+ifeq ($(GO111MODULE),)
+ echo no. you must use GO111MODULE here
+ false
+else
-rm -f basicwindow
go build -v -x
+endif
stderr: build
- echo "writing to /tmp/helloworld.stderr"
- ./helloworld >/tmp/helloworld.stderr 2>&1
+ echo "writing to /tmp/basicwindow.stderr"
+ ./basicwindow >/tmp/basicwindow.stderr 2>&1
push:
git add --all