ENH: fix for BSD makes no longer use dir name as a target

This commit is contained in:
Ken Martin 2005-06-21 16:29:47 -04:00
parent 60b72ab3de
commit dd2e2807cb
2 changed files with 3 additions and 0 deletions

View File

@ -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();

View File

@ -2840,6 +2840,7 @@ void cmLocalUnixMakefileGenerator3
{
// Add a rule to build the target by name.
localName = this->GetRelativeTargetDirectory(t->second);
localName += "/rule";
commands.clear();
depends.clear();