mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-27 22:42:09 +00:00
* Seems some shells *cough*dash*cough* have a broken built-in "echo"
This commit is contained in:
parent
54ba74964a
commit
2a02c656e0
1 changed files with 5 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -874,12 +874,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 )
|
||||
|
||||
|
||||
|
@ -1711,5 +1712,5 @@ ifneq ($(strip $(D_FILES)),)
|
|||
endif
|
||||
|
||||
.PHONY: all clean clean2 clean-debug clean-release copyfiles \
|
||||
debug default dist distclean installer makedirs release \
|
||||
targets tools toolsclean
|
||||
debug default dist distclean installer libversioncheck makedirs \
|
||||
release targets tools toolsclean
|
||||
|
|
Loading…
Reference in a new issue