minor fixes

This commit is contained in:
Ken Martin 2002-09-06 08:33:21 -04:00
parent 079e8469ab
commit 50a1f8a5e4
1 changed files with 12 additions and 12 deletions

View File

@ -799,23 +799,23 @@ void cmLocalUnixMakefileGenerator::OutputUtilityRule(std::ostream& fout,
std::string comment = "Rule to build Utility "; std::string comment = "Rule to build Utility ";
comment += name; comment += name;
std::string depends; std::string depends;
std::string replaceVars;
const std::vector<cmCustomCommand> &ccs = t.GetCustomCommands(); const std::vector<cmCustomCommand> &ccs = t.GetCustomCommands();
for(std::vector<cmCustomCommand>::const_iterator i = ccs.begin(); for(std::vector<cmCustomCommand>::const_iterator i = ccs.begin();
i != ccs.end(); ++i) i != ccs.end(); ++i)
{ {
const std::vector<std::string> & dep = i->GetDepends(); const std::vector<std::string> & dep = i->GetDepends();
for(std::vector<std::string>::const_iterator d = dep.begin(); for(std::vector<std::string>::const_iterator d = dep.begin();
d != dep.end(); ++d) d != dep.end(); ++d)
{ {
depends += " \\\n"; depends += " \\\n";
depends += *d; replaceVars = *d;
} m_Makefile->ExpandVariablesInString(replaceVars);
depends += this->ConvertToOutputPath(replaceVars.c_str());
}
} }
this->OutputMakeRule(fout, this->OutputMakeRule(fout, comment.c_str(), name,
comment.c_str(), depends.c_str(), cc);
name,
depends.c_str(),
cc);
} }