$(MAKE) -C armsrc $@
$(MAKE) -C $(HOST_BINARY) $@
-.PHONY: all clean help
+.PHONY: all clean help _test
help:
@echo Multi-OS Makefile, you are running on $(DETECTED_OS)
@echo Possible targets:
@echo + all - Make bootrom, armsrc and the OS-specific host directory
@echo + clean - Clean in bootrom, armsrc and the OS-specific host directory
-
\ No newline at end of file
+
+# Dummy target to test for GNU make availability
+_test:
--- /dev/null
+@echo off\r
+make -C .. -s _test\r
+IF ERRORLEVEL 1 GOTO fail\r
+SET MAKE_FAILED=0\r
+GOTO end\r
+:fail\r
+echo ************************************************\r
+echo * A compatible (GNU) make was not detected *\r
+echo * Please get an updated version of the Windows *\r
+echo * compile environment, or install GNU make *\r
+echo * manually *\r
+echo ************************************************\r
+SET MAKE_FAILED=1\r
+:end\r