]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - BaseTools/Source/C/Makefiles/NmakeSubdirs.bat
BaseTools: Clean up source files
[mirror_edk2.git] / BaseTools / Source / C / Makefiles / NmakeSubdirs.bat
... / ...
CommitLineData
1@REM ## @file\r
2@REM # Makefile\r
3@REM #\r
4@REM # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
5@REM # This program and the accompanying materials\r
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
11@REM # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12@REM #\r
13\r
14@echo off\r
15setlocal\r
16set TOOL_ERROR=0\r
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
26if ERRORLEVEL 1 (\r
27 set /A TOOL_ERROR= %TOOL_ERROR% + %ERRORLEVEL%\r
28 goto error\r
29)\r
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
41set /A TOOL_ERROR=%TOOL_ERROR%+%ERRORLEVEL%\r
42ECHO Error while making %1!\r
43VERIFY OTHER 2>NUL\r
44\r
45:exit\r
46exit /B %TOOL_ERROR%\r