Makefile: Support building from source tarball

Fixes #168
This commit is contained in:
Andrey Petrov 2016-08-17 13:34:06 -04:00
parent a9603fba7d
commit d2f08490f7

View File

@ -3,7 +3,7 @@ KEY = host_key
PORT = 2022
SRCS = %.go
VERSION := $(shell git describe --tags --dirty --always)
VERSION := $(shell git describe --tags --dirty --always 2> /dev/null || echo "dev")
LDFLAGS = LDFLAGS="-X main.Version=$(VERSION)"
SUBPACKAGES := $(shell go list ./... | grep -v /vendor/)