diff options
author | Michael Brown | 2007-12-07 05:14:06 +0100 |
---|---|---|
committer | Michael Brown | 2007-12-07 05:14:06 +0100 |
commit | cf895a8c7cb2d5cbcc56a75d2644c028bc77d982 (patch) | |
tree | 435f35b517277a6c5eae1a713e6b72e2da51e820 /src/Makefile | |
parent | Try to fix echo-detection to work on all systems that provide any (diff) | |
download | ipxe-cf895a8c7cb2d5cbcc56a75d2644c028bc77d982.tar.gz ipxe-cf895a8c7cb2d5cbcc56a75d2644c028bc77d982.tar.xz ipxe-cf895a8c7cb2d5cbcc56a75d2644c028bc77d982.zip |
Avoid Makefile syntax that requires make >= 3.81.
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/Makefile b/src/Makefile index 3516d671..add47abe 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. |