Anton Samsonov has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/79152?usp=email )
Change subject: Makefile: Fix version string for non-Git builds ......................................................................
Makefile: Fix version string for non-Git builds
Change-Id: I8694e618878823a9e96b1f2bcfa63f6c71d3c2ed --- M Makefile 1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/52/79152/1
diff --git a/Makefile b/Makefile index bf01d0f..08ace29 100644 --- a/Makefile +++ b/Makefile @@ -392,8 +392,10 @@
VERSION ?= $(shell cat ./VERSION) VERSION_GIT ?= $(shell git describe 2>/dev/null) -ifdef VERSION_GIT +ifneq ($(VERSION_GIT),) VERSION := "$(VERSION) (git:$(VERSION_GIT))" +else + VERSION := "$(VERSION)" endif
# No spaces in release names unless set explicitly