From e906cb515aa794f1f0a7a132eb2b269da3aafd78 Mon Sep 17 00:00:00 2001 From: BlackYoup Date: Mon, 10 Apr 2017 02:16:12 +0200 Subject: [PATCH] Build: use VERSION if provided or fallback to git tag --describe --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 946edfea..de8f16d5 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ GLIDE_GO_EXECUTABLE ?= go DIST_DIRS := find * -type d -exec -VERSION := $(shell git describe --tags) +VERSION ?= $(shell git describe --tags) VERSION_INCODE = $(shell perl -ne '/^var version.*"([^"]+)".*$$/ && print "v$$1\n"' glide.go) VERSION_INCHANGELOG = $(shell perl -ne '/^\# Release (\d+(\.\d+)+) / && print "$$1\n"' CHANGELOG.md | head -n1)