fix build
This commit is contained in:
parent
d991311ef7
commit
747956547b
43
Makefile
43
Makefile
|
@ -1,36 +1,35 @@
|
||||||
# export GO111MODULE="off"
|
VERSION = $(shell git describe --tags)
|
||||||
run: build
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
reset
|
|
||||||
# ./control-panel-droplet --debugger
|
all: build
|
||||||
./control-panel-droplet
|
./control-panel-droplet
|
||||||
|
|
||||||
|
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-droplet
|
||||||
|
|
||||||
redomod:
|
redomod:
|
||||||
rm -f go.*
|
rm -f go.*
|
||||||
GO111MODULE= go mod init
|
GO111MODULE= go mod init
|
||||||
GO111MODULE= go mod tidy
|
GO111MODULE= go mod tidy
|
||||||
|
|
||||||
|
|
||||||
build-release:
|
|
||||||
GO111MODULE=off go get -v -u -x .
|
|
||||||
GO111MODULE=off go build -v
|
|
||||||
./control-panel-droplet
|
|
||||||
|
|
||||||
build:
|
|
||||||
GO111MODULE=off go get -v -x .
|
|
||||||
GO111MODULE=off go build -v
|
|
||||||
|
|
||||||
update:
|
|
||||||
go get -v -u -x .
|
|
||||||
|
|
||||||
log:
|
|
||||||
reset
|
|
||||||
tail -f /tmp/witgui.* /tmp/guilogfile
|
|
||||||
|
|
||||||
gocui: build
|
gocui: build
|
||||||
./control-panel-droplet -gui gocui >/tmp/control-panel-droplet 2>&1
|
./control-panel-droplet -gui gocui
|
||||||
|
|
||||||
quiet:
|
quiet:
|
||||||
./control-panel-droplet >/tmp/witgui.log.stderr 2>&1
|
./control-panel-droplet
|
||||||
|
|
||||||
github:
|
github:
|
||||||
@echo "IPv6 only. Do not mirror on github"
|
@echo "IPv6 only. Do not mirror on github"
|
||||||
|
|
Loading…
Reference in New Issue