summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-21 20:29:47 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-21 20:29:47 (GMT)
commitdd2e2807cb65381e36981630e80ce160cfd4bfc4 (patch)
tree654dfd88fa1cbfe625ae0cdd5815ee642376dd36 /Source/cmGlobalUnixMakefileGenerator3.cxx
parent60b72ab3deb0cd1fa818a4c91c9ce6e519e8413f (diff)
downloadCMake-dd2e2807cb65381e36981630e80ce160cfd4bfc4.zip
CMake-dd2e2807cb65381e36981630e80ce160cfd4bfc4.tar.gz
CMake-dd2e2807cb65381e36981630e80ce160cfd4bfc4.tar.bz2
ENH: fix for BSD makes no longer use dir name as a target
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmGlobalUnixMakefileGenerator3.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator3.cxx b/Source/cmGlobalUnixMakefileGenerator3.cxx
index 8df3b69..6ee17e0 100644
--- a/Source/cmGlobalUnixMakefileGenerator3.cxx
+++ b/Source/cmGlobalUnixMakefileGenerator3.cxx
@@ -835,6 +835,7 @@ cmGlobalUnixMakefileGenerator3
depends.clear();
depends.push_back("cmake_check_build_system");
localName = lg->GetRelativeTargetDirectory(t->second);
+ localName += "/rule";
lg->WriteMakeRule(ruleFileStream,
"Build rule for subdir invocation for target.",
localName.c_str(), depends, commands);
@@ -847,6 +848,7 @@ cmGlobalUnixMakefileGenerator3
t->second.GetName(), depends, commands);
// add the clean rule
+ localName = lg->GetRelativeTargetDirectory(t->second);
makeTargetName = localName;
makeTargetName += "/clean";
depends.clear();