fix build
This commit is contained in:
parent
bb34a4590f
commit
b1de98a8f8
21
Makefile
21
Makefile
|
@ -1,7 +1,24 @@
|
|||
all:
|
||||
go build -v -x
|
||||
VERSION = $(shell git describe --tags)
|
||||
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||
|
||||
all: build
|
||||
./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 -w *.go
|
||||
|
||||
|
|
Loading…
Reference in New Issue