VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d) build: GO111MODULE=off go build \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" ./forgeConfig FORGE_HOME=/tmp/forge ./forgeConfig list: ./forgeConfig --list add: ./forgeConfig --add --name 'foo' --gopath 'go.wit.com/apps/foo' update: ./forgeConfig --update --name 'foo' --gopath 'go.wit.com/apps/foonew' corruptMemory: ./forgeConfig --update --name 'foo' --gopath 'blah' goimports: goimports -w *.go prep: go get -v -t -u run: go run *.go clean: -rm -f forgeConfig