diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:08:04 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:08:04 -0600 | 
| commit | 0a38ebfd4780d5010952e5e34bbf9edd79e317ef (patch) | |
| tree | b39f371dd36bbb60f37fa6b059fe97cdc961093e | |
| parent | af99bd179c75f331497dbdc23e83b9e6c0a5f349 (diff) | |
fix buildv0.21.3
| -rw-r--r-- | Makefile | 36 | 
1 files changed, 24 insertions, 12 deletions
@@ -1,21 +1,34 @@  VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) -all: -	-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}" +all: build  	./helloworld +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 -v -x \ -		    -ldflags "-X main.VERSION=${VERSION}" -	./helloworld +	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 + +# 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/  gocui: -	GO111MODULE=off go build -v -x -	./helloworld --gui gocui >/tmp/helloworld.stdout 2>&1 +	./helloworld --gui gocui  goimports:  	goimports -w *.go @@ -25,4 +38,3 @@ redomod:  	goimports -w *.go  	GO111MODULE= go mod init  	GO111MODULE= go mod tidy -  | 
