Added separate makefile for the BaseTools/Source/Python.
authorjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 29 Oct 2007 05:33:48 +0000 (05:33 +0000)
committerjljusten <jljusten@7335b38e-4728-0410-8992-fb3ffe349368>
Mon, 29 Oct 2007 05:33:48 +0000 (05:33 +0000)
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@857 7335b38e-4728-0410-8992-fb3ffe349368

GNUmakefile
Source/Python/GNUmakefile [new file with mode: 0644]

index 32f441e..cbe71dd 100644 (file)
@@ -1,8 +1,19 @@
 
-all:
-       $(MAKE) -C Source/C
+all: subdirs
 
-clean:
-       $(MAKE) -C Source/C clean
-       find Source/Python -name '*.pyc' -exec rm '{}' ';'
+LANGUAGES = C Python
+
+SUBDIRS := $(patsubst %,Source/%,$(sort $(LANGUAGES)))
+CLEAN_SUBDIRS := $(patsubst %,%-clean,$(sort $(SUBDIRS)))
+
+.PHONY: subdirs $(SUBDIRS)
+subdirs: $(SUBDIRS)
+$(SUBDIRS):
+       $(MAKE) -C $@
+
+.PHONY: $(CLEAN_SUBDIRS)
+$(CLEAN_SUBDIRS):
+       -$(MAKE) -C $(@:-clean=) clean
+
+clean:  $(CLEAN_SUBDIRS)
 
diff --git a/Source/Python/GNUmakefile b/Source/Python/GNUmakefile
new file mode 100644 (file)
index 0000000..aa569b3
--- /dev/null
@@ -0,0 +1,6 @@
+
+all:
+
+clean:
+       find . -name '*.pyc' -exec rm '{}' ';'
+