Author: stefanct Date: Mon Jan 26 00:57:08 2015 New Revision: 1875 URL: http://flashrom.org/trac/flashrom/changeset/1875
Log: 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
Modified: trunk/Makefile
Modified: trunk/Makefile ============================================================================== --- trunk/Makefile Mon Jan 26 00:45:14 2015 (r1874) +++ trunk/Makefile Mon Jan 26 00:57:08 2015 (r1875) @@ -382,7 +382,9 @@
# 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)." ))
###############################################################################