Only build project dirs with a Makefile in them. This should fix the
[oota-llvm.git] / projects / Makefile
index 5465268ecf1bb769f75ed1e10d4311be471f2749..da7f710e5c365233cf51d3a02fc13da4cd651ebe 100644 (file)
@@ -10,7 +10,7 @@ LEVEL=..
 
 include $(LEVEL)/Makefile.config
 
 
 include $(LEVEL)/Makefile.config
 
-DIRS=
-OPTIONAL_DIRS:=$(basename $(shell ls $(SourceDir) | grep -v CVS | grep -v Makefile))
+#DIRS=
+DIRS:= $(patsubst %/Makefile,%,$(wildcard $(SourceDir)/*/Makefile))
 
 include $(BUILD_SRC_ROOT)/Makefile.rules
 
 include $(BUILD_SRC_ROOT)/Makefile.rules