34 lines
438 B
Makefile
34 lines
438 B
Makefile
all: build
|
|
build: fmt lint gobuild
|
|
vendor: govendor
|
|
deps: godeps
|
|
fmt: gofmt
|
|
lint: golint
|
|
test: gotest
|
|
|
|
deb:
|
|
debuild -e GOROOT -e PATH -i -us -uc -b
|
|
|
|
debclean:
|
|
debuild clean
|
|
rm -f ../openvpn-mgt
|
|
|
|
govendor:
|
|
GO111MODULE=on go mod tidy
|
|
GO111MODULE=on go mod vendor
|
|
|
|
gobuild:
|
|
statik -src=./web/
|
|
go build
|
|
|
|
godeps:
|
|
go get -v -u -t ./...
|
|
go get github.com/rakyll/statik
|
|
|
|
gofmt:
|
|
go fmt ./...
|
|
golint:
|
|
go vet ./...
|
|
gotest:
|
|
go test ./...
|