mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 10:20:24 +03:00
Another (hopefully more robust) attempt to find a usable substitute
for "echo -e" on the host system.
This commit is contained in:
21
src/Makefile
21
src/Makefile
@@ -1,6 +1,6 @@
|
||||
# Initialise variables that get added to throughout the various Makefiles
|
||||
#
|
||||
MAKEDEPS := Makefile .toolcheck
|
||||
MAKEDEPS := Makefile .toolcheck .echocheck
|
||||
SRCDIRS :=
|
||||
SRCS :=
|
||||
NON_AUTO_SRCS :=
|
||||
@@ -9,24 +9,6 @@ ROMS :=
|
||||
MEDIA :=
|
||||
NON_AUTO_MEDIA :=
|
||||
|
||||
# Find a usable "echo -e" substitute.
|
||||
#
|
||||
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
|
||||
endif
|
||||
|
||||
# Grab the central Config file.
|
||||
#
|
||||
MAKEDEPS += Config
|
||||
@@ -90,6 +72,7 @@ RM ?= rm -f
|
||||
TOUCH ?= touch
|
||||
MKDIR ?= mkdir
|
||||
CP ?= cp
|
||||
ECHO ?= echo
|
||||
PERL ?= /usr/bin/perl
|
||||
CC ?= $(CROSS_COMPILE)gcc
|
||||
AS ?= $(CROSS_COMPILE)as
|
||||
|
||||
Reference in New Issue
Block a user