summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2007-09-06 22:44:49 +0000
committerTim Angus <tim@ngus.net>2007-09-06 22:44:49 +0000
commitdf02ea4c36c45ef40e7b94a15f01c9af33da6b92 (patch)
treea4832ec7ca231f8abb20a56da8b6f9a4dfa50808
parent80f110dd9b47dbb1922db90af2807e9e62608ea5 (diff)
* Seems some shells *cough*dash*cough* have a broken built-in "echo"
-rw-r--r--Makefile7
1 files 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