From d2f08490f7f8fbfdbbcc4c9beffeae3f18d4dc83 Mon Sep 17 00:00:00 2001 From: Andrey Petrov Date: Wed, 17 Aug 2016 13:34:06 -0400 Subject: [PATCH] Makefile: Support building from source tarball Fixes #168 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 33f84627..a43917c7 100644 --- a/Makefile +++ b/Makefile @@ -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/)