]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Makefile
BaseTools: use set instead of list for a variable to be used with in
[mirror_edk2.git] / BaseTools / Makefile
index f6efb7b6a73c6363380059d30cabc3a3ae4c8d3e..3736d85f5f413a02225a35b9b35278f3f46c52b4 100644 (file)
@@ -1,8 +1,8 @@
 ## @file\r
 # Windows makefile for Base Tools project build.\r
 #\r
-# Copyright (c) 2007 - 2010, Intel Corporation<BR>\r
-# All rights reserved. This program and the accompanying materials\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
 # http://opensource.org/licenses/bsd-license.php\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