]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Makefile
BaseTools: Update Makefile to ignore python tools make
[mirror_edk2.git] / BaseTools / Makefile
1 ## @file
2 # Windows makefile for Base Tools project build.
3 #
4 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13
14 !IFNDEF BASE_TOOLS_PATH
15 !ERROR "BASE_TOOLS_PATH is not set! Please run toolsetup.bat first!"
16 !ENDIF
17
18 SUBDIRS = $(BASE_TOOLS_PATH)\Source\C
19
20 all: c
21
22 c :
23 @$(PYTHON3) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\C
24
25 python:
26 @$(PYTHON3) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $(BASE_TOOLS_PATH)\Source\Python
27
28 subdirs: $(SUBDIRS)
29 @$(PYTHON3) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py all $**
30
31 .PHONY: clean
32 clean:
33 $(PYTHON3) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py clean $(SUBDIRS)
34
35 .PHONY: cleanall
36 cleanall:
37 $(PYTHON3) $(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.py cleanall $(SUBDIRS)
38