summaryrefslogtreecommitdiff
path: root/Makefile
blob: 6dce3b4ea583efdae8f5eb0c686a06570650ee4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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

stderr: build
	echo "writing to /tmp/basicwindow.out"
	./basicwindow >/tmp/basicwindow.out 2>&1

gocui:
	./basicwindow --gui gocui >/tmp/basicwindow.out 2>&1

goimports:
	goimports -w *.go

redomod:
	rm -f go.*
	goimports -w *.go
	GO111MODULE= go mod init
	GO111MODULE= go mod tidy