X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=BaseTools%2FMakefile;h=10963009e9e23be2e7c75e02ebfd3efcb02cc072;hb=c1387446edbb05a11e2646e4184585d58d47a7d6;hp=f6efb7b6a73c6363380059d30cabc3a3ae4c8d3e;hpb=c69f724df0f9e53b2c29f10e1eae3c784749e8da;p=mirror_edk2.git diff --git a/BaseTools/Makefile b/BaseTools/Makefile index f6efb7b6a7..10963009e9 100644 --- a/BaseTools/Makefile +++ b/BaseTools/Makefile @@ -1,34 +1,34 @@ ## @file # Windows makefile for Base Tools project build. # -# Copyright (c) 2007 - 2010, Intel Corporation
-# All rights reserved. This program and the accompanying materials -# are licensed and made available under the terms and conditions of the BSD License -# which accompanies this distribution. The full text of the license may be found at -# http://opensource.org/licenses/bsd-license.php -# -# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, -# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. +# Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.
+# SPDX-License-Identifier: BSD-2-Clause-Patent # -SUBDIRS = Source\C Source\Python +!IFNDEF BASE_TOOLS_PATH +!ERROR "BASE_TOOLS_PATH is not set! Please run toolsetup.bat first!" +!ENDIF + +SUBDIRS = $(BASE_TOOLS_PATH)\Source\C $(BASE_TOOLS_PATH)\Source\Python -all: c python +all: c c : - @Source\C\Makefiles\NmakeSubdirs.bat all Source\C + @if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C + @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C -python: - @Source\C\Makefiles\NmakeSubdirs.bat all Source\Python subdirs: $(SUBDIRS) - @Source\C\Makefiles\NmakeSubdirs.bat all $** + @if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $** + @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $** .PHONY: clean clean: - @Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS) + @if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS) + @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS) .PHONY: cleanall cleanall: - @Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS) + @if defined PYTHON_COMMAND $(PYTHON_COMMAND) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS) + @if not defined PYTHON_COMMAND $(PYTHON_HOME)\python.exe $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)