diff options
-rw-r--r-- | Source/cmUnixMakefileGenerator.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmUnixMakefileGenerator.cxx b/Source/cmUnixMakefileGenerator.cxx index 8e9a645..133d4c5 100644 --- a/Source/cmUnixMakefileGenerator.cxx +++ b/Source/cmUnixMakefileGenerator.cxx @@ -799,10 +799,22 @@ void cmUnixMakefileGenerator::OutputUtilityRule(std::ostream& fout, } std::string comment = "Rule to build Utility "; comment += name; + std::string depends; + const std::vector<cmCustomCommand> &ccs = t.GetCustomCommands(); + for(std::vector<cmCustomCommand>::const_iterator i = ccs.begin(); + i != ccs.end(); ++i) + { + const std::vector<std::string> & dep = i->GetDepends(); + for(std::vector<std::string>::const_iterator d = dep.begin(); + d != dep.end(); ++d) + { + depends += *d + "\\\n"; + } + } this->OutputMakeRule(fout, comment.c_str(), name, - 0, + depends.c_str(), cc); } |