autogenerate components to build
authorNorm Jacobs <Norm.Jacobs@Sun.COM>
Fri, 11 Jun 2010 12:39:17 -0500
changeset 23 e7ed56b7c498
parent 22 b89eb90ac9c5
child 24 b2de6c41fe86
autogenerate components to build
components/Makefile
--- a/components/Makefile	Fri Jun 11 12:23:59 2010 -0500
+++ b/components/Makefile	Fri Jun 11 12:39:17 2010 -0500
@@ -23,11 +23,12 @@
 
 include ../make-rules/shared-macros.mk
 
-COMPONENT_DIRS +=	lcms
-COMPONENT_DIRS +=	file
-COMPONENT_DIRS +=	pycups
-COMPONENT_DIRS +=	bind
-COMPONENT_DIRS +=	rsync
+# for now, the assumption is we build any directory with a Makefile.  This may
+# not always be the case. If we build a new make-like tool to drive the upper
+# level build, it may make different decisions and will need to include
+# appropriate dependency information.
+
+COMPONENT_DIRS =	$(shell echo */Makefile | sed -e 's;/Makefile;;g')
 
 download:	TARGET = download
 prep:		TARGET = prep