mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-27 10:34:08 +08:00
Have the Windows batch files check for make
This commit is contained in:
parent
3742d90563
commit
52b3d184ce
4 changed files with 24 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -11,10 +11,12 @@ all clean: %:
|
||||||
$(MAKE) -C armsrc $@
|
$(MAKE) -C armsrc $@
|
||||||
$(MAKE) -C $(HOST_BINARY) $@
|
$(MAKE) -C $(HOST_BINARY) $@
|
||||||
|
|
||||||
.PHONY: all clean help
|
.PHONY: all clean help _test
|
||||||
help:
|
help:
|
||||||
@echo Multi-OS Makefile, you are running on $(DETECTED_OS)
|
@echo Multi-OS Makefile, you are running on $(DETECTED_OS)
|
||||||
@echo Possible targets:
|
@echo Possible targets:
|
||||||
@echo + all - Make bootrom, armsrc and the OS-specific host directory
|
@echo + all - Make bootrom, armsrc and the OS-specific host directory
|
||||||
@echo + clean - Clean in 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:
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
call _checkmake
|
||||||
|
IF %MAKE_FAILED%==1 GOTO end
|
||||||
cd ..\armsrc
|
cd ..\armsrc
|
||||||
rem make clean
|
rem make clean
|
||||||
make
|
make
|
||||||
cd ..\cockpit
|
cd ..\cockpit
|
||||||
|
:end
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
@echo off
|
@echo off
|
||||||
|
call _checkmake
|
||||||
|
IF %MAKE_FAILED%==1 GOTO end
|
||||||
cd ..\bootrom
|
cd ..\bootrom
|
||||||
rem make clean
|
rem make clean
|
||||||
make
|
make
|
||||||
cd ..\cockpit
|
cd ..\cockpit
|
||||||
|
:end
|
||||||
|
|
14
cockpit/_checkmake.bat
Normal file
14
cockpit/_checkmake.bat
Normal 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
|
Loading…
Reference in a new issue