Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid Makefile syntax that requires make >= 3.81.
  • Loading branch information
Michael Brown committed Dec 7, 2007
1 parent 3b58fc0 commit cf895a8
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/Makefile
Expand Up @@ -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.
Expand Down

0 comments on commit cf895a8

Please sign in to comment.