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}" FORGE_HOME=/tmp/forge ./scanGoSrc install: GO111MODULE=off go install \ -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" goimports: goimports -w *.go prep: go get -v -t -u run: go run *.go clean: -rm -f scanGoSrc