gadgetwindow/Makefile

43 lines
824 B
Makefile
Raw Normal View History

VERSION = $(shell git describe --tags)
all: build
./gadgetwindow
build:
-rm -f gadgetwindow
-rm resources/*.so
touch resources/blank.so
-cp -a ~/go/src/go.wit.com/toolkits/*.so resources/ # embed the toolkit plugins in the binary
GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION}"
install:
GO111MODULE=off go install -v -x \
-ldflags "-X main.VERSION=${VERSION}"
./gadgetwindow
2024-01-16 16:37:43 -06:00
nocui: build
reset
./gadgetwindow --gui nocui
gocui: build
reset
echo "redirecting STDOUT & STDERR to /tmp/gadgetwindow.out"
./gadgetwindow --gui gocui >/tmp/gadgetwindow.out 2>&1
log:
tail -f /tmp/gadgetwindow.out*
debugger: build
reset
./gadgetwindow --debugger
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