control-panel-digitalocean/Makefile

36 lines
781 B
Makefile
Raw Permalink Normal View History

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-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-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-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-11-16 00:06:35 -06:00
clean:
-rm -f control-panel-droplet
2024-11-16 00:06:35 -06:00
redomod:
rm -f go.*
GO111MODULE= go mod init
GO111MODULE= go mod tidy
gocui: build
2024-11-16 00:06:35 -06:00
./control-panel-droplet -gui gocui
quiet:
2024-11-16 00:06:35 -06:00
./control-panel-droplet
github:
@echo "IPv6 only. Do not mirror on github"