-checkenv:
- @echo
- @echo -en "\033[01;33m***\033[00;32m Checking compilation environment... \033[00m"
-ifeq "" "$(shell which sdl2-config)"
- @echo
- @echo
- @echo -e "\033[01;33mIt seems that you don't have the SDL 2 development libraries installed.
- @echo -e "have installed them, make sure that the sdl2-config file is somewhere in your"
- @echo -e "path and is executable.\033[00m"
- @echo
-#Is there a better way to break out of the makefile?
- @break
-else
- @echo -e "\033[01;37mOK\033[00m"
+ifeq "$(FINDSDL2)" ""
+ $(info )
+ $(info It seems that you don't have the SDL 2 development libraries installed. If you)
+ $(info have installed them, make sure that the sdl2-config file is somewhere in your)
+ $(info path and is executable.)
+ $(info )
+ $(error SDL2 MISSING)