diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:07:09 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:07:09 -0600 | 
| commit | db990457e5744e00fbba99289c87fb1f23049554 (patch) | |
| tree | a9694f68d537e51beab56c3cec2ca3c2aa49fe62 | |
| parent | 161f3934ceab7943445389daf199ad3901c091e8 (diff) | |
| -rw-r--r-- | Makefile | 30 | 
1 files changed, 19 insertions, 11 deletions
@@ -1,20 +1,31 @@  VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d)  all: build  	./gadgetwindow  build: +	GO111MODULE=off go build \ +		-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +verbose: +	GO111MODULE=off go build -v -x \ +		-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +install: +	GO111MODULE=off go install \ +		-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" + +clean:  	-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 +# embed the toolkit plugins in the binary +embed: +	-rm resources/*.so +	touch resources/blank.so +	cp -a ~/go/src/go.wit.com/toolkits/*.so resources/  nocui: build  	reset @@ -23,10 +34,7 @@ nocui: build  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* +	./gadgetwindow --gui gocui  debugger: build  	reset  | 
