VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d) all: build gocui build: goimports vet GO111MODULE=off go build -v -x \ -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 basicwindow go.* # 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: ./basicwindow --gui gocui goimports: goimports -w *.go vet: @GO111MODULE=off go vet @echo this go binary package builds okay