]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/C/Makefiles/NmakeSubdirs.bat
fac89bd9eee439a69e2147228c8a469f48bcc3ba
[mirror_edk2.git] / BaseTools / Source / C / Makefiles / NmakeSubdirs.bat
1 @REM ## @file
2 @REM #
3 @REM # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>
4 @REM # This program and the accompanying materials
5 @REM # are licensed and made available under the terms and conditions of the BSD License
6 @REM # which accompanies this distribution. The full text of the license may be found at
7 @REM # http://opensource.org/licenses/bsd-license.php
8 @REM #
9 @REM # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 @REM # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12
13 @echo off
14 setlocal
15 SET NMAKE_COMMAND=%1
16 SHIFT
17
18 :loop
19 if "%1"=="" goto success
20
21 ECHO Building %1
22 pushd %1
23 nmake %NMAKE_COMMAND%
24 if ERRORLEVEL 1 goto error
25 ECHO %1 built successfully (%NMAKE_COMMAND%)
26 ECHO.
27 shift
28 popd
29 goto loop
30
31 :success
32 goto exit
33
34 :error
35 popd
36 ENDLOCAL
37 ECHO Error while making %1!
38 VERIFY OTHER 2>NUL
39
40 :exit