summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-23 13:45:24 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-23 13:45:24 (GMT)
commitf826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5 (patch)
tree537534219d3e967ed51889f7f493b9ef32ea8d4f /Source/cmLocalUnixMakefileGenerator3.cxx
parent539e5ac4c2c27a49365022d66b228edacc46d24c (diff)
downloadCMake-f826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5.zip
CMake-f826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5.tar.gz
CMake-f826c6c58bd7dbafee9f0d8d12bb814ac0e8abc5.tar.bz2
ENH: Centralized generation of targets listed in the help to be done by the code that actually writes the targets.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 525b791..c082625 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -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);
+ }
}
//----------------------------------------------------------------------------