From 5d1ad35275cf0f3dd96925aa7ed3feb3ddebd2cf Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Sun, 25 Jan 2015 23:57:08 +0000 Subject: 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). Corresponding to flashrom svn r1875. Signed-off-by: Stefan Tauner Acked-by: Stefan Tauner --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a36628cb1..1f39f41ed 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)." )) ############################################################################### -- cgit v1.2.3