From df02ea4c36c45ef40e7b94a15f01c9af33da6b92 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Thu, 6 Sep 2007 22:44:49 +0000 Subject: * Seems some shells *cough*dash*cough* have a broken built-in "echo" --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 706195ca..e8eec16b 100644 --- a/Makefile +++ b/Makefile @@ -853,12 +853,13 @@ BASE_CFLAGS += -DMINSDL_MAJOR=$(MINSDL_MAJOR) \ -DMINSDL_PATCH=$(MINSDL_PATCH) libversioncheck: - @echo "#include \"SDL_version.h\"\n" \ + @/bin/echo -e "#include \"SDL_version.h\"\n" \ "#if SDL_VERSION_ATLEAST(" \ "$(MINSDL_MAJOR),$(MINSDL_MINOR),$(MINSDL_PATCH)" \ ")\nMINSDL_PASSED\n#endif" | \ $(CC) $(BASE_CFLAGS) -E - | grep -q MINSDL_PASSED || \ - ( echo "SDL version $(MINSDL_MAJOR).$(MINSDL_MINOR).$(MINSDL_PATCH)" \ + ( /bin/echo "SDL version" \ + "$(MINSDL_MAJOR).$(MINSDL_MINOR).$(MINSDL_PATCH)" \ "or greater required" && exit 1 ) @@ -1398,5 +1399,5 @@ ifneq ($(strip $(D_FILES)),) endif .PHONY: all clean clean2 clean-debug clean-release \ - debug default dist distclean makedirs release \ + debug default dist distclean libversioncheck makedirs release \ targets tools toolsclean -- cgit