Make the "DIRS" option descend any directory with a Makefile.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16001
91177308-0d34-0410-b5e6-
96231b3b80d8
-##===- projects/Makefile ------------------------------*- Makefile -*-===##
+##===- examples/Makefile -----------------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
include $(LEVEL)/Makefile.config
-DIRS = Fibonacci HowToUseJIT
+DIRS:= $(patsubst %/Makefile,%,$(wildcard $(SourceDir)/*/Makefile))
include $(BUILD_SRC_ROOT)/Makefile.rules