Compare commits

..

No commits in common. "master" and "v0.20.3" have entirely different histories.

2 changed files with 3 additions and 24 deletions

View File

@ -1,24 +1,7 @@
VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
all: build
all:
go build -v -x
./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

View File

@ -1,8 +1,4 @@
/*
Attempt to make a VPN
Take a look at: https://github.com/skx/simple-vpn
*/
// This is a simple example
package main
import (