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 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 redomod: rm -f go.* goimports -w *.go GO111MODULE= go mod init GO111MODULE= go mod tidy