gadgetwindow/Makefile

51 lines
764 B
Makefile

all: build
reset
./gadgetwindow
nocui: build
reset
./gadgetwindow --gui nocui
gocui: build
reset
# ./gadgetwindow --gui gocui >/tmp/gadgetwindow.stderr 2>&1
./gadgetwindow --gui gocui --tmp-log
log:
tail -f /tmp/guilogfile /tmp/witgui.*
test-tmp-log: build
./gadgetwindow --gui andlabs --tmp-log
debugger: build
reset
./gadgetwindow --debugger
build:
ifeq ($(GO111MODULE),)
echo no. you must use GO111MODULE here
false
else
-rm -f gadgetwindow
go build -v -x
endif
stderr: build
echo "writing to /tmp/gadgetwindow.stderr"
./gadgetwindow >/tmp/gadgetwindow.stderr 2>&1
push:
git add --all
git commit -a
git push
goimports:
goimports -w *.go
redomod:
rm -f go.*
goimports -w *.go
GO111MODULE= go mod init
GO111MODULE= go mod tidy