MCPcopy Create free account
hub / github.com/Kitware/CMake / WriteTargetCleanRules

Method WriteTargetCleanRules

Source/cmMakefileTargetGenerator.cxx:1321–1341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1319}
1320
1321void cmMakefileTargetGenerator::WriteTargetCleanRules()
1322{
1323 std::vector<std::string> depends;
1324 std::vector<std::string> commands;
1325
1326 // Construct the clean target name.
1327 std::string const cleanTarget = cmStrCat(
1328 this->LocalGenerator->GetRelativeTargetDirectory(this->GeneratorTarget),
1329 "/clean");
1330
1331 // Construct the clean command.
1332 this->LocalGenerator->AppendCleanCommand(commands, this->CleanFiles,
1333 this->GeneratorTarget);
1334 this->LocalGenerator->CreateCDCommand(
1335 commands, this->LocalGenerator->GetCurrentBinaryDirectory(),
1336 this->LocalGenerator->GetBinaryDirectory());
1337
1338 // Write the rule.
1339 this->LocalGenerator->WriteMakeRule(*this->BuildFileStream, nullptr,
1340 cleanTarget, depends, commands, true);
1341}
1342
1343bool cmMakefileTargetGenerator::WriteMakeRule(
1344 std::ostream& os, char const* comment,

Callers 3

WriteRuleFilesMethod · 0.80
WriteRuleFilesMethod · 0.80
WriteRuleFilesMethod · 0.80

Calls 5

AppendCleanCommandMethod · 0.80
CreateCDCommandMethod · 0.80
cmStrCatFunction · 0.70
WriteMakeRuleMethod · 0.45

Tested by

no test coverage detected