summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/Makefile b/Makefile
index 91eb0a7..5527cb2 100644
--- a/Makefile
+++ b/Makefile
@@ -8,14 +8,11 @@ nocui: build
gocui: build
reset
- ./gadgetwindow --gui gocui >/tmp/gadgetwindow.stderr 2>&1
- # ./gadgetwindow --gui gocui --tmp-log
+ echo "redirecting STDOUT & STDERR to /tmp/gadgetwindow.out"
+ ./gadgetwindow --gui gocui >/tmp/gadgetwindow.out 2>&1
log:
- tail -f /tmp/guilogfile /tmp/witgui.* /tmp/gadget*
-
-test-tmp-log: build
- ./gadgetwindow --gui andlabs --tmp-log
+ tail -f /tmp/gadgetwindow.out*
debugger: build
reset
@@ -23,22 +20,15 @@ debugger: build
build:
ifeq ($(GO111MODULE),)
- echo no. you must use GO111MODULE here
- false
+ @echo
+ @echo In GO, to build here you must export GO111MODULE=off
+ @echo
+ @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
@@ -47,4 +37,3 @@ redomod:
goimports -w *.go
GO111MODULE= go mod init
GO111MODULE= go mod tidy
-