Compare commits
No commits in common. "master" and "v0.20.4" have entirely different histories.
21
Makefile
21
Makefile
|
@ -1,24 +1,7 @@
|
||||||
VERSION = $(shell git describe --tags)
|
all:
|
||||||
BUILDTIME = $(shell date +%Y.%m.%d)
|
go build -v -x
|
||||||
|
|
||||||
all: build
|
|
||||||
./control-panel-vpn
|
./control-panel-vpn
|
||||||
|
|
||||||
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-vpn
|
|
||||||
|
|
||||||
goimports:
|
goimports:
|
||||||
goimports -w *.go
|
goimports -w *.go
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue