Anton Samsonov has uploaded this change for review.

View Change

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

To view, visit change 79152. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I8694e618878823a9e96b1f2bcfa63f6c71d3c2ed
Gerrit-Change-Number: 79152
Gerrit-PatchSet: 1
Gerrit-Owner: Anton Samsonov <devel@zxlab.ru>
Gerrit-MessageType: newchange