VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d) all: build ./control-panel-cloudflare build: GO111MODULE=off go build \ -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 control-panel-cloudflare goimports: goimports -w *.go redomod: rm -f go.* GO111MODULE= go mod init GO111MODULE= go mod tidy build-and-update: go get -v -u -x . go build -v -o control-panel-cloudflare ./control-panel-cloudflare goget: go get -v -x . update: GO111MODULE="off" go get -v -u -x . log: reset tail -f /tmp/witgui.* /tmp/guilogfile debug: build ./control-panel-cloudflare --gui-debug gocui: build ./control-panel-cloudflare --gui gocui >/tmp/witgui.log.stderr 2>&1 quiet: ./control-panel-cloudflare >/tmp/witgui.log.stderr 2>&1 github: @echo "IPv6 only. Do not mirror on github"