Only build project dirs with a Makefile in them. This should fix the
authorChris Lattner <sabre@nondot.org>
Fri, 20 Aug 2004 01:07:54 +0000 (01:07 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 20 Aug 2004 01:07:54 +0000 (01:07 +0000)
problem where Depend or Debug directories prevent CVS from nuking an obsolete
project dir

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15935 91177308-0d34-0410-b5e6-96231b3b80d8

projects/Makefile

index 5465268ecf1bb769f75ed1e10d4311be471f2749..da7f710e5c365233cf51d3a02fc13da4cd651ebe 100644 (file)
@@ -10,7 +10,7 @@ LEVEL=..
 
 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