Correct the specification of the DIRS variable to not include the source
authorReid Spencer <rspencer@reidspencer.com>
Fri, 3 Sep 2004 22:25:40 +0000 (22:25 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 3 Sep 2004 22:25:40 +0000 (22:25 +0000)
directory prefix, just the name of the subdirectory. This prevents the
makefile from trying to find makefiles (like Makefile.common) in the wrong
place.

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

projects/Makefile

index e382e86e4d598d231e7061772226a148b8d7cfe7..83e78e941fb08bbf225b24ae955c693760a7eb8d 100644 (file)
@@ -10,6 +10,6 @@ LEVEL=..
 
 include $(LEVEL)/Makefile.config
 
-DIRS:= $(patsubst %/Makefile,%,$(wildcard $(SourceDir)/*/Makefile))
+DIRS:= $(patsubst $(SourceDir)%/Makefile,%,$(wildcard $(SourceDir)/*/Makefile))
 
 include $(BUILD_SRC_ROOT)/Makefile.rules