VERSION = $(shell git describe --tags) all: GO111MODULE=off go build -v -x \ -ldflags "-X main.VERSION=${VERSION}" ./helloworld install: GO111MODULE=off go install -v -x \ -ldflags "-X main.VERSION=${VERSION}" ./helloworld gocui: GO111MODULE=off go build -v -x ./helloworld --gui gocui >/tmp/helloworld.stdout 2>&1 goimports: goimports -w *.go redomod: rm -f go.* goimports -w *.go GO111MODULE= go mod init GO111MODULE= go mod tidy