diff options
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2015-01-25 23:57:08 +0000 |
---|---|---|
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | 2015-01-25 23:57:08 +0000 |
commit | 5d1ad35275cf0f3dd96925aa7ed3feb3ddebd2cf (patch) | |
tree | 19eb258579482cc69ebfe107b9dd762700631108 | |
parent | 3e6b7bb9480ca0aff25f9d6bc7767bf4c5331447 (diff) | |
download | ast2050-flashrom-5d1ad35275cf0f3dd96925aa7ed3feb3ddebd2cf.zip ast2050-flashrom-5d1ad35275cf0f3dd96925aa7ed3feb3ddebd2cf.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).
Corresponding to flashrom svn r1875.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)." )) ############################################################################### |