ENH: add PHONY targets

This commit is contained in:
Bill Hoffman 2008-03-24 10:26:38 -04:00
parent 962a69acd4
commit a24ff4e453
2 changed files with 5 additions and 2 deletions

View File

@ -967,7 +967,7 @@ void cmGlobalUnixMakefileGenerator3::WriteHelpRule
}
}
lg->WriteMakeRule(ruleFileStream, "Help Target",
"help:",
"help",
no_depends, commands, true);
ruleFileStream << "\n\n";
}

View File

@ -638,8 +638,11 @@ cmLocalUnixMakefileGenerator3
replace = *i;
os << "\t" << replace.c_str() << "\n";
}
if(symbolic)
{
os << ".PHONY : " << tgt.c_str() << "\n";
}
os << "\n";
// Add the output to the local help if requested.
if(in_help)
{