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