gadgetwindow/Makefile

48 lines
719 B
Makefile
Raw Normal View History

all: build
reset
./gadgetwindow
2024-01-16 16:37:43 -06:00
nocui: build
reset
./gadgetwindow --gui nocui
gocui: build
reset
# ./gadgetwindow --gui gocui >/tmp/gadgetwindow.stderr 2>&1
./gadgetwindow --gui gocui --tmp-log
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
2024-01-16 16:37:43 -06:00
push:
git add --all
git commit -a
git push
goimports:
goimports -w *.go
2024-01-16 16:37:43 -06:00
redomod:
rm -f go.*
goimports -w *.go
2024-01-16 16:37:43 -06:00
GO111MODULE= go mod init
GO111MODULE= go mod tidy