Have the Windows batch files check for make

This commit is contained in:
henryk@ploetzli.ch 2009-08-31 03:12:45 +00:00
parent 3742d90563
commit 52b3d184ce
4 changed files with 24 additions and 2 deletions

View file

@ -11,10 +11,12 @@ all clean: %:
$(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
# Dummy target to test for GNU make availability
_test:

View file

@ -1,5 +1,8 @@
@echo off
call _checkmake
IF %MAKE_FAILED%==1 GOTO end
cd ..\armsrc
rem make clean
make
cd ..\cockpit
:end

View file

@ -1,5 +1,8 @@
@echo off
call _checkmake
IF %MAKE_FAILED%==1 GOTO end
cd ..\bootrom
rem make clean
make
cd ..\cockpit
:end

14
cockpit/_checkmake.bat Normal file
View file

@ -0,0 +1,14 @@
@echo off
make -C .. -s _test
IF ERRORLEVEL 1 GOTO fail
SET MAKE_FAILED=0
GOTO end
:fail
echo ************************************************
echo * A compatible (GNU) make was not detected *
echo * Please get an updated version of the Windows *
echo * compile environment, or install GNU make *
echo * manually *
echo ************************************************
SET MAKE_FAILED=1
:end