diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:07:30 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:07:30 -0600 | 
| commit | 0383207f72055e8028a1790bc6c03954eff5334f (patch) | |
| tree | 86b7bd189f5a6e9a4bf962c63b84ec50413c1058 | |
| parent | 2da89882e515ddbe5ce6a5e5540a461a3efdcc76 (diff) | |
| -rw-r--r-- | Makefile | 20 | ||||
| -rw-r--r-- | main.go | 2 | 
2 files changed, 18 insertions, 4 deletions
@@ -1,10 +1,24 @@  .PHONY: debian +VERSION = $(shell git describe --tags) +BUILDTIME = $(shell date +%Y.%m.%d) -all: build debian -	# GO111MODULE=off go build -o build main.go +all: build +	@echo fixme -build: nocui gocui andlabs +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}" + +build:  goimports:  	goimports -w *.go @@ -10,7 +10,7 @@ var myGui *gui.Node // This is the beginning of the binary tree of widgets  // go will sit here until the window exits  func main() {  	myGui = gui.New().Default() -	myGui.LoadToolkit("nocui") +	// myGui.LoadToolkit("nocui")  	buildworld()  	gui.Watchdog()  | 
