summaryrefslogtreecommitdiff
path: root/BaseTools/Source/C/Makefiles/NmakeSubdirs.bat
blob: cacb50baa9e3f0c5af88914da3eddde53ec6d553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
setlocal
SET NMAKE_COMMAND=%1
SHIFT

:loop
if "%1"=="" goto success

ECHO Building %1
pushd %1
nmake %NMAKE_COMMAND%
if ERRORLEVEL 1 goto error
ECHO %1 built successfully (%NMAKE_COMMAND%)
ECHO.
shift
popd
goto loop

:success
goto exit

:error
popd
ENDLOCAL
ECHO Error while making %1!
VERIFY OTHER 2>NUL

:exit