Makefile: Support building from source tarball

Fixes #168
This commit is contained in:
Andrey Petrov committed 2016-08-17 13:34:12 -04:00
1 parent a9603fba7d
commit d2f08490f7
1 file changed
+1 -1
+1 -1
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/)