cmLocalGenerator: Rename 'MAKEFILE' to 'MAKERULE'
Rename the internal enumeration value for converting paths destined for use in Makefile rule syntax.
This commit is contained in:
parent
8e018ae44e
commit
9f92a78be2
|
@ -63,7 +63,7 @@ bool cmDepends::Write(std::ostream &makeDepends,
|
|||
// Make sure the object file is relative to the top of the build tree.
|
||||
obj = this->LocalGenerator->Convert(obj,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE);
|
||||
cmLocalGenerator::MAKERULE);
|
||||
dependencies[obj].insert(src);
|
||||
}
|
||||
for(std::map<std::string, std::set<std::string> >::const_iterator
|
||||
|
|
|
@ -276,7 +276,7 @@ bool cmDependsC::WriteDependencies(const std::set<std::string>& sources,
|
|||
makeDepends << obj << ": " <<
|
||||
this->LocalGenerator->Convert(*i,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE)
|
||||
cmLocalGenerator::MAKERULE)
|
||||
<< std::endl;
|
||||
internalDepends << " " << *i << std::endl;
|
||||
}
|
||||
|
|
|
@ -451,7 +451,7 @@ cmDependsFortran
|
|||
makeDepends << obj << ": " <<
|
||||
this->LocalGenerator->Convert(*i,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE)
|
||||
cmLocalGenerator::MAKERULE)
|
||||
<< std::endl;
|
||||
internalDepends << " " << *i << std::endl;
|
||||
}
|
||||
|
@ -482,7 +482,7 @@ cmDependsFortran
|
|||
proxy += ".mod.proxy";
|
||||
proxy = this->LocalGenerator->Convert(proxy,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE);
|
||||
cmLocalGenerator::MAKERULE);
|
||||
|
||||
// since we require some things add them to our list of requirements
|
||||
makeDepends << obj << ".requires: " << proxy << std::endl;
|
||||
|
@ -499,7 +499,7 @@ cmDependsFortran
|
|||
std::string stampFile =
|
||||
this->LocalGenerator->Convert(required->second,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE);
|
||||
cmLocalGenerator::MAKERULE);
|
||||
makeDepends << obj << ": " << stampFile << "\n";
|
||||
}
|
||||
else
|
||||
|
@ -512,7 +512,7 @@ cmDependsFortran
|
|||
module =
|
||||
this->LocalGenerator->Convert(module,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE);
|
||||
cmLocalGenerator::MAKERULE);
|
||||
makeDepends << obj << ": " << module << "\n";
|
||||
}
|
||||
}
|
||||
|
@ -528,7 +528,7 @@ cmDependsFortran
|
|||
proxy += ".mod.proxy";
|
||||
proxy = this->LocalGenerator->Convert(proxy,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE);
|
||||
cmLocalGenerator::MAKERULE);
|
||||
makeDepends << proxy << ": " << obj << ".provides" << std::endl;
|
||||
}
|
||||
|
||||
|
@ -584,7 +584,7 @@ cmDependsFortran
|
|||
driver += "/build";
|
||||
driver = this->LocalGenerator->Convert(driver,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE);
|
||||
cmLocalGenerator::MAKERULE);
|
||||
makeDepends << driver << ": " << obj << ".provides.build\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -530,7 +530,7 @@ cmGlobalUnixMakefileGenerator3
|
|||
// Begin the directory-level rules section.
|
||||
std::string dir = lg->GetMakefile()->GetStartOutputDirectory();
|
||||
dir = lg->Convert(dir, cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE);
|
||||
cmLocalGenerator::MAKERULE);
|
||||
lg->WriteDivider(ruleFileStream);
|
||||
ruleFileStream
|
||||
<< "# Directory level rules for directory "
|
||||
|
|
|
@ -681,7 +681,7 @@ void cmLocalGenerator::AddBuildTargetRule(const std::string& llang,
|
|||
objVector.push_back(ofname);
|
||||
this->AddCustomCommandToCreateObject(ofname.c_str(),
|
||||
llang, *(*i), target);
|
||||
objs += this->Convert(ofname,START_OUTPUT,MAKEFILE);
|
||||
objs += this->Convert(ofname,START_OUTPUT,MAKERULE);
|
||||
objs += " ";
|
||||
}
|
||||
}
|
||||
|
@ -2755,7 +2755,7 @@ std::string cmLocalGenerator::ConvertToOutputFormat(const std::string& source,
|
|||
{
|
||||
std::string result = source;
|
||||
// Convert it to an output path.
|
||||
if (output == MAKEFILE)
|
||||
if (output == MAKERULE)
|
||||
{
|
||||
result = cmSystemTools::ConvertToOutputPath(result.c_str());
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ public:
|
|||
* path setting
|
||||
*/
|
||||
enum RelativeRoot { NONE, FULL, HOME, START, HOME_OUTPUT, START_OUTPUT };
|
||||
enum OutputFormat { UNCHANGED, MAKEFILE, SHELL, WATCOMQUOTE, RESPONSE };
|
||||
enum OutputFormat { UNCHANGED, MAKERULE, SHELL, WATCOMQUOTE, RESPONSE };
|
||||
std::string ConvertToOutputFormat(const std::string& source,
|
||||
OutputFormat output);
|
||||
std::string Convert(const std::string& remote, RelativeRoot local,
|
||||
|
|
|
@ -630,7 +630,7 @@ cmLocalUnixMakefileGenerator3
|
|||
|
||||
// Construct the left hand side of the rule.
|
||||
replace = target;
|
||||
std::string tgt = this->Convert(replace,HOME_OUTPUT,MAKEFILE);
|
||||
std::string tgt = this->Convert(replace,HOME_OUTPUT,MAKERULE);
|
||||
const char* space = "";
|
||||
if(tgt.size() == 1)
|
||||
{
|
||||
|
@ -663,7 +663,7 @@ cmLocalUnixMakefileGenerator3
|
|||
dep != depends.end(); ++dep)
|
||||
{
|
||||
replace = *dep;
|
||||
replace = this->Convert(replace,HOME_OUTPUT,MAKEFILE);
|
||||
replace = this->Convert(replace,HOME_OUTPUT,MAKERULE);
|
||||
os << cmMakeSafe(tgt) << space << ": " << cmMakeSafe(replace) << "\n";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -218,7 +218,7 @@ void cmMakefileTargetGenerator::WriteCommonCodeRules()
|
|||
<< this->LocalGenerator->IncludeDirective << " " << root
|
||||
<< this->Convert(dependFileNameFull,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE)
|
||||
cmLocalGenerator::MAKERULE)
|
||||
<< "\n\n";
|
||||
|
||||
if(!this->NoRuleMessages)
|
||||
|
@ -229,7 +229,7 @@ void cmMakefileTargetGenerator::WriteCommonCodeRules()
|
|||
<< this->LocalGenerator->IncludeDirective << " " << root
|
||||
<< this->Convert(this->ProgressFileNameFull,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE)
|
||||
cmLocalGenerator::MAKERULE)
|
||||
<< "\n\n";
|
||||
}
|
||||
|
||||
|
@ -262,7 +262,7 @@ void cmMakefileTargetGenerator::WriteCommonCodeRules()
|
|||
<< this->LocalGenerator->IncludeDirective << " " << root
|
||||
<< this->Convert(this->FlagFileNameFull,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE)
|
||||
cmLocalGenerator::MAKERULE)
|
||||
<< "\n\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -54,7 +54,7 @@ void cmMakefileUtilityTargetGenerator::WriteRuleFiles()
|
|||
<< this->LocalGenerator->IncludeDirective << " " << root
|
||||
<< this->Convert(this->ProgressFileNameFull,
|
||||
cmLocalGenerator::HOME_OUTPUT,
|
||||
cmLocalGenerator::MAKEFILE)
|
||||
cmLocalGenerator::MAKERULE)
|
||||
<< "\n\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue