diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-23 15:33:28 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-04-23 15:33:28 (GMT) |
commit | 361f17802f179c6313004475f43c32b617dd0277 (patch) | |
tree | 88dfaaa3eb903a74037533692972fc081ca70dd5 /Source/cmUnixMakefileGenerator.cxx | |
parent | 6083e3c1274d8def2984e3406cb82048df2b98a8 (diff) | |
download | CMake-361f17802f179c6313004475f43c32b617dd0277.zip CMake-361f17802f179c6313004475f43c32b617dd0277.tar.gz CMake-361f17802f179c6313004475f43c32b617dd0277.tar.bz2 |
ENH: add depends for utility targets
Diffstat (limited to 'Source/cmUnixMakefileGenerator.cxx')
-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); } |