ENH: Centralized generation of targets listed in the help to be done by the code that actually writes the targets.

This commit is contained in:
Brad King
2006-08-23 09:45:24 -04:00
parent 539e5ac4c2
commit f826c6c58b
3 changed files with 20 additions and 11 deletions
+9 -2
View File
@@ -369,7 +369,7 @@ cmLocalUnixMakefileGenerator3
// Write the rule to the makefile.
std::vector<std::string> no_depends;
this->WriteMakeRule(ruleFileStream, comment,
output, no_depends, commands, true);
output, no_depends, commands, true, true);
}
//----------------------------------------------------------------------------
@@ -561,7 +561,8 @@ cmLocalUnixMakefileGenerator3
const char* target,
const std::vector<std::string>& depends,
const std::vector<std::string>& commands,
bool symbolic)
bool symbolic,
bool in_help)
{
// Make sure there is a target.
if(!target || !*target)
@@ -637,6 +638,12 @@ cmLocalUnixMakefileGenerator3
os << "\t" << replace.c_str() << "\n";
}
os << "\n";
// Add the output to the local help if requested.
if(in_help)
{
this->LocalHelp.push_back(target);
}
}
//----------------------------------------------------------------------------