2024-11-16 00:06:35 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
|
|
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
|
|
|
|
|
|
|
all: build
|
2024-02-23 22:07:33 -06:00
|
|
|
./control-panel-droplet
|
2024-01-01 15:26:36 -06:00
|
|
|
|
2024-11-16 00:06:35 -06:00
|
|
|
build:
|
|
|
|
GO111MODULE=off go build \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
2024-01-07 18:50:36 -06:00
|
|
|
|
2024-11-16 00:06:35 -06:00
|
|
|
verbose:
|
|
|
|
GO111MODULE=off go build -v -x \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
2024-01-07 18:50:36 -06:00
|
|
|
|
2024-11-16 00:06:35 -06:00
|
|
|
install:
|
|
|
|
GO111MODULE=off go install \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
2024-01-01 15:26:36 -06:00
|
|
|
|
2024-11-16 00:06:35 -06:00
|
|
|
clean:
|
|
|
|
-rm -f control-panel-droplet
|
2024-01-01 15:26:36 -06:00
|
|
|
|
2024-11-16 00:06:35 -06:00
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
2024-01-01 15:26:36 -06:00
|
|
|
|
|
|
|
|
|
|
|
gocui: build
|
2024-11-16 00:06:35 -06:00
|
|
|
./control-panel-droplet -gui gocui
|
2024-01-01 15:26:36 -06:00
|
|
|
|
|
|
|
quiet:
|
2024-11-16 00:06:35 -06:00
|
|
|
./control-panel-droplet
|
2024-01-03 14:39:07 -06:00
|
|
|
|
|
|
|
github:
|
|
|
|
@echo "IPv6 only. Do not mirror on github"
|