| 1319 | } |
| 1320 | |
| 1321 | void 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 | |
| 1343 | bool cmMakefileTargetGenerator::WriteMakeRule( |
| 1344 | std::ostream& os, char const* comment, |
no test coverage detected