BUG: minor cleanup and fix for convenience rules
This commit is contained in:
parent
3744464c5e
commit
27ab533963
|
@ -509,6 +509,8 @@ cmGlobalUnixMakefileGenerator3
|
|||
std::string makeTargetName;
|
||||
|
||||
depends.push_back("cmake_check_build_system");
|
||||
if (lg->GetParent())
|
||||
{
|
||||
std::string dir = lg->GetMakefile()->GetStartOutputDirectory();
|
||||
dir = lg->Convert(dir.c_str(),cmLocalGenerator::HOME_OUTPUT,cmLocalGenerator::MAKEFILE);
|
||||
localName = dir;
|
||||
|
@ -527,8 +529,9 @@ cmGlobalUnixMakefileGenerator3
|
|||
commands.push_back(lg->GetRecursiveMakeCall("build.make",makeTargetName.c_str()));
|
||||
|
||||
// Write the rule.
|
||||
lg->WriteMakeRule(ruleFileStream, "Convenience name for target.",
|
||||
lg->WriteMakeRule(ruleFileStream, "Convenience name for directory.",
|
||||
localName.c_str(), depends, commands);
|
||||
}
|
||||
|
||||
// for each target Generate the rule files for each target.
|
||||
const cmTargets& targets = lg->GetMakefile()->GetTargets();
|
||||
|
|
Loading…
Reference in New Issue