.PHONY: build 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}" ./xstartplacement 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}" # makes a .deb package debian: rm -f ~/incoming/virtigo*deb go-deb --no-gui --repo go.wit.com/apps/virtigo # autofixes your import headers in your golang files goimports: goimports -w *.go # remake the go.mod and go.sum files redomod: rm -f go.* GO111MODULE= go mod init GO111MODULE= go mod tidy clean: rm -f go.* rm -f virtigo*