fix CURVER in case of building from src tar.gz

This commit is contained in:
Cory Bennett
2015-11-23 14:35:41 -08:00
parent 4c8bf5ddff
commit e67ffb632f
+1 -1
View File
@@ -18,7 +18,7 @@ export GOPATH=$(shell pwd)
GOBIN ?= $(shell pwd)/bin
NAME=jira
CURVER ?= $(shell git describe --abbrev=0 --tags)
CURVER ?= $(shell [ -d .git ] && git describe --abbrev=0 --tags || grep ^\#\# CHANGELOG.md | awk '{print $$2; exit}')
LDFLAGS:=-X main.buildVersion=$(CURVER)
build: src/github.com/Netflix-Skunkworks/go-jira