summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2015-01-25 23:57:08 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2015-01-25 23:57:08 +0000
commit8b1a9713d9dc3e7a5bf2a1e4b71ee5770c6087e2 (patch)
tree19eb258579482cc69ebfe107b9dd762700631108 /Makefile
parent19e7580a6eb2923c50052a2b3ad76d07175ecd59 (diff)
downloadflashrom-8b1a9713d9dc3e7a5bf2a1e4b71ee5770c6087e2.tar.gz
Fix "unterminated variable reference" on ancient versions of GNU make.
Add a workaround for the GNU make that shipped with CentOS 4.9, which apparently does not like semicolons in shell code (and which also ignores info functions altogether by the way). Signed-off-by: Stefan Tauner <stefan.tauner@student.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1875 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a36628c..1f39f41 100644
--- a/Makefile
+++ b/Makefile
@@ -382,7 +382,9 @@ SVNDEF := -D'FLASHROM_VERSION="$(VERSION)"'
# Inform user if there is no meaningful version string. If there is version information from a VCS print
# something anyway because $(info...) will print a line break in any case which would look suspicious.
-$(info $(shell ./util/getrevision.sh -c 2>/dev/null || echo "Files don't seem to be under version control." ; \
+# The && between the echos is a workaround for old versions of GNU make that issue the error "unterminated
+# variable reference" if a semicolon is used instead.
+$(info $(shell ./util/getrevision.sh -c 2>/dev/null || echo "Files don't seem to be under version control." && \
echo "Replacing all version templates with $(VERSION)." ))
###############################################################################