mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user