2024-01-17 03:02:12 -06:00
|
|
|
all: build
|
2024-01-18 21:20:07 -06:00
|
|
|
reset
|
2024-01-20 16:13:54 -06:00
|
|
|
./gadgetwindow
|
2024-01-16 16:37:43 -06:00
|
|
|
|
2024-01-27 09:04:43 -06:00
|
|
|
nocui: build
|
|
|
|
reset
|
|
|
|
./gadgetwindow --gui nocui
|
|
|
|
|
2024-01-27 15:45:56 -06:00
|
|
|
gocui: build
|
|
|
|
reset
|
2024-01-30 11:56:31 -06:00
|
|
|
# ./gadgetwindow --gui gocui >/tmp/gadgetwindow.stderr 2>&1
|
|
|
|
./gadgetwindow --gui gocui --tmp-log
|
|
|
|
|
|
|
|
test-tmp-log: build
|
|
|
|
./gadgetwindow --gui andlabs --tmp-log
|
2024-01-27 15:45:56 -06:00
|
|
|
|
2024-01-27 09:04:43 -06:00
|
|
|
debugger: build
|
|
|
|
reset
|
|
|
|
./gadgetwindow --debugger
|
|
|
|
|
2024-01-17 03:02:12 -06:00
|
|
|
build:
|
2024-01-19 06:14:20 -06:00
|
|
|
ifeq ($(GO111MODULE),)
|
|
|
|
echo no. you must use GO111MODULE here
|
|
|
|
false
|
|
|
|
else
|
2024-01-20 16:13:54 -06:00
|
|
|
-rm -f gadgetwindow
|
2024-01-17 03:02:12 -06:00
|
|
|
go build -v -x
|
2024-01-19 06:14:20 -06:00
|
|
|
endif
|
2024-01-17 03:02:12 -06:00
|
|
|
|
|
|
|
stderr: build
|
2024-01-20 16:13:54 -06:00
|
|
|
echo "writing to /tmp/gadgetwindow.stderr"
|
|
|
|
./gadgetwindow >/tmp/gadgetwindow.stderr 2>&1
|
2024-01-17 03:02:12 -06:00
|
|
|
|
2024-01-16 16:37:43 -06:00
|
|
|
push:
|
|
|
|
git add --all
|
|
|
|
git commit -a
|
|
|
|
git push
|
|
|
|
|
2024-01-20 16:13:54 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
2024-01-16 16:37:43 -06:00
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
2024-01-18 19:08:33 -06:00
|
|
|
goimports -w *.go
|
2024-01-16 16:37:43 -06:00
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|