diff options
| author | Jeff Carr <[email protected]> | 2024-11-16 00:06:47 -0600 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-16 00:06:47 -0600 | 
| commit | b1de98a8f80b2a8aabce3cd70ab1d9b3fbe7817a (patch) | |
| tree | 1e9b8d275f5ea3f3d882f7836ed33d75e31766cc | |
| parent | bb34a4590f32d675847ce97049c20353c9d4a251 (diff) | |
fix buildv0.22.9v0.22.8v0.22.7v0.22.6v0.22.5v0.22.41v0.22.40v0.22.4v0.22.39v0.22.38v0.22.37v0.22.36v0.22.35v0.22.34v0.22.33v0.22.32v0.22.31v0.22.30v0.22.3v0.22.29v0.22.28v0.22.27v0.22.26v0.22.25v0.22.24v0.22.23v0.22.22v0.22.21v0.22.20v0.22.2v0.22.19v0.22.18v0.22.17v0.22.16v0.22.15v0.22.14v0.22.13v0.22.12v0.22.11v0.22.10v0.22.1
| -rw-r--r-- | Makefile | 21 | 
1 files changed, 19 insertions, 2 deletions
@@ -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  | 
