30 lines
451 B
Makefile
30 lines
451 B
Makefile
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
|
|
|