by scanning the source tree (not the object tree).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10223
91177308-0d34-0410-b5e6-
96231b3b80d8
##===----------------------------------------------------------------------===##
LEVEL=..
+include $(LEVEL)/Makefile.config
+
DIRS=
-OPTIONAL_DIRS:=$(shell ls | grep -v CVS)
+OPTIONAL_DIRS:=$(basename $(shell ls $(SourceDir) | grep -v CVS | grep -v Makefile))
-include $(LEVEL)/Makefile.common
+include $(BUILD_SRC_ROOT)/Makefile.rules