blob: 6a82c73dee3c154c0aa3ca8d12e34708144b85e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
  | 
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"
  |