components/Makefile
changeset 225 2f3e03a69313
parent 145 1e2390f5555e
child 313 e30cc0dc4e8b
--- a/components/Makefile	Tue May 10 23:37:02 2011 +0100
+++ b/components/Makefile	Tue May 10 17:39:30 2011 -0700
@@ -38,6 +38,16 @@
 
 -include components.mk
 
+# depends.mk is auto-generated by concatenating 'depend.mk' files in each
+# component directory.
+depends.mk:     components.mk
+	@echo "Generating component dependencies..."
+	@cat $(shell $(BASS_O_MATIC) --workspace=$(WS_TOP) --components=paths \
+		| sed -e 's;^$(shell pwd)/;;g' -e 's;$$;/depend.mk;g') >$@ \
+		2>/dev/null
+ 
+-include depends.mk
+
 
 download:		TARGET = download
 prep:			TARGET = prep
@@ -117,13 +127,4 @@
 	 $(BASS_O_MATIC) $(TEMPLATE_ZONE:%=--template-zone %) \
 			 $(@:%.nosetup=--component %) --make $(TARGET) $(LOG)
 
-# depends.mk is auto-generated by the build tools, bass-o-matic.py in particular
-depends.mk:	components.mk
-	@echo "Generating component dependencies..."
-	@$(BASS_O_MATIC) --workspace=$(WS_TOP) --components=depend \
-		| sed -e 's;$(shell pwd)/;;g' >$@
-
-# skip dependency generation until we have a new solution for it.
-#-include depends.mk
-
 FORCE: