From: Michael Brown Date: Fri, 7 Dec 2007 04:14:06 +0000 (+0000) Subject: Avoid Makefile syntax that requires make >= 3.81. X-Git-Tag: v0.9.3~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf895a8c7cb2d5cbcc56a75d2644c028bc77d982;p=thirdparty%2Fipxe.git Avoid Makefile syntax that requires make >= 3.81. --- diff --git a/src/Makefile b/src/Makefile index 3516d6719..add47abe1 100644 --- a/src/Makefile +++ b/src/Makefile @@ -9,16 +9,22 @@ ROMS := MEDIA := NON_AUTO_MEDIA := -# Find a usable "echo -e". +# Find a usable "echo -e" substitute. # -ifeq ($(shell echo '\0101'),A) +ifeq ($(shell echo '\101'),A) +ECHO ?= echo +endif +ifeq ($(shell echo -e '\101'),A) +ECHO ?= echo -e +endif +ifeq ($(shell /bin/echo '\101'),A) +ECHO ?= /bin/echo +endif +ifeq ($(shell /bin/echo -e '\101'),A) +ECHO ?= /bin/echo -e +endif +ifndef ECHO ECHO := echo -else ifeq ($(shell echo -e '\0101'),A) -ECHO := echo -e -else ifeq ($(shell /bin/echo '\0101'),A) -ECHO := /bin/echo -else ifeq ($(shell /bin/echo -e '\0101'),A) -ECHO := /bin/echo -e endif # Grab the central Config file.