2024-11-16 00:06:08 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
|
|
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
|
|
|
|
|
|
|
all: build
|
2024-01-05 09:06:59 -06:00
|
|
|
./control-panel-cloudflare
|
2024-01-01 15:27:59 -06:00
|
|
|
|
2024-11-16 00:06:08 -06:00
|
|
|
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
|
|
|
|
|
2024-01-21 02:42:00 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|
|
|
|
|
2024-01-03 14:41:03 -06:00
|
|
|
build-and-update:
|
2024-01-01 15:27:59 -06:00
|
|
|
go get -v -u -x .
|
2024-01-03 14:41:03 -06:00
|
|
|
go build -v -o control-panel-cloudflare
|
2024-01-01 15:27:59 -06:00
|
|
|
./control-panel-cloudflare
|
|
|
|
|
2024-01-18 01:33:07 -06:00
|
|
|
goget:
|
2024-01-03 14:41:03 -06:00
|
|
|
go get -v -x .
|
2024-01-18 01:33:07 -06:00
|
|
|
|
2024-01-01 15:27:59 -06:00
|
|
|
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
|
2024-01-03 15:01:27 -06:00
|
|
|
|
|
|
|
github:
|
|
|
|
@echo "IPv6 only. Do not mirror on github"
|