]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Makefile
BaseTools: expression can use single in instead of 3 API calls.
[mirror_edk2.git] / BaseTools / Makefile
index 294c532732de6481089f141ff80e0b4ea5094723..3736d85f5f413a02225a35b9b35278f3f46c52b4 100644 (file)
@@ -1,7 +1,7 @@
 ## @file\r
 # Windows makefile for Base Tools project build.\r
 #\r
-# Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
 #\r
 \r
-SUBDIRS = Source\C Source\Python\r
+!IFNDEF BASE_TOOLS_PATH\r
+!ERROR "BASE_TOOLS_PATH is not set! Please run toolsetup.bat first!"\r
+!ENDIF\r
+\r
+SUBDIRS = $(BASE_TOOLS_PATH)\Source\C $(BASE_TOOLS_PATH)\Source\Python\r
 \r
 all: c python\r
 \r
 c :\r
-       @Source\C\Makefiles\NmakeSubdirs.bat all Source\C\r
+  @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat all $(BASE_TOOLS_PATH)\Source\C\r
 \r
 python:\r
-       @Source\C\Makefiles\NmakeSubdirs.bat all Source\Python\r
+  @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat all $(BASE_TOOLS_PATH)\Source\Python\r
 \r
 subdirs: $(SUBDIRS)\r
-       @Source\C\Makefiles\NmakeSubdirs.bat all $**\r
+  @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat all $**\r
 \r
 .PHONY: clean\r
 clean:\r
-       @Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS)\r
+  @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat clean $(SUBDIRS)\r
 \r
 .PHONY: cleanall\r
 cleanall:\r
-       @Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS)\r
+  @$(BASE_TOOLS_PATH)\Source\C\Makefiles\NmakeSubdirs.bat cleanall $(SUBDIRS)\r
 \r