summaryrefslogtreecommitdiffstats
path: root/Source/cmUnixMakefileGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-08 22:31:59 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-08 22:31:59 (GMT)
commitfe25e5873b636d631363499948379f588ab11d6a (patch)
tree61e178c306a639294b21d1d959ab36a50a0a7fc3 /Source/cmUnixMakefileGenerator.cxx
parentb23fedda77e71f8fba391f77337fa74279b72ff0 (diff)
downloadCMake-fe25e5873b636d631363499948379f588ab11d6a.zip
CMake-fe25e5873b636d631363499948379f588ab11d6a.tar.gz
CMake-fe25e5873b636d631363499948379f588ab11d6a.tar.bz2
ENH: Added output of a custom command's m_Source as a dependency.
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-rw-r--r--Source/cmUnixMakefileGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx
index 84fa092..bad24ac 100644
--- a/Source/cmUnixMakefileGenerator.cxx
+++ b/Source/cmUnixMakefileGenerator.cxx
@@ -370,7 +370,7 @@ void cmUnixMakefileGenerator::OutputDepends(std::ostream& fout)
// Output each custom rule in the following format:
-// m_Result: m_Depends[0] m_Depends[1] ...
+// m_Result: m_Source m_Depends[0] m_Depends[1] ...
// (tab) m_Command
void cmUnixMakefileGenerator::OutputCustomRules(std::ostream& fout)
{
@@ -378,7 +378,7 @@ void cmUnixMakefileGenerator::OutputCustomRules(std::ostream& fout)
m_Makefile->GetCustomCommands().begin();
c != m_Makefile->GetCustomCommands().end(); ++c)
{
- fout << c->m_Result.c_str() << ":";
+ fout << c->m_Result.c_str() << ": " << c->m_Source.c_str();
for(std::vector<std::string>::const_iterator d = c->m_Depends.begin();
d != c->m_Depends.end(); ++ d)
{