ENH: turn off extra rules for nmake and wmake

This commit is contained in:
Bill Hoffman 2008-03-18 11:28:59 -04:00
parent 813779d962
commit cb512cd513
1 changed files with 16 additions and 12 deletions

View File

@ -738,18 +738,22 @@ cmLocalUnixMakefileGenerator3
makefileStream, "Disable implicit rules so canoncical targets will work.", makefileStream, "Disable implicit rules so canoncical targets will work.",
".SUFFIXES", no_depends, no_commands, false); ".SUFFIXES", no_depends, no_commands, false);
// turn off RCS and SCCS automatic stuff from gmake if(!this->NMake && !this->WatcomWMake)
makefileStream << "# Remove some rules from gmake that .SUFFIXES does not remove.\n" {
<< "# This makes gmake faster as it does not try to run implicit rules\n" // turn off RCS and SCCS automatic stuff from gmake
<< "# on targets that never exist.\n" makefileStream << "# Remove some rules from gmake that .SUFFIXES does not remove.\n"
<< "%: %,v\n" << "# This makes gmake faster as it does not try to run implicit rules\n"
<< "%: RCS/%,v\n" << "# on targets that never exist.\n"
<< "%: RCS/%\n" << "SUFFIXES =\n"
<< "%: s.%\n" << "%: %,v\n"
<< "%: %.w\n" << "%: RCS/%,v\n"
<< "%.c: %.w %.ch\n" << "%: RCS/%\n"
<< "%: %.tex\n" << "%: s.%\n"
<< "%: SCCS/s.%\n\n"; << "%: %.w\n"
<< "%.c: %.w %.ch\n"
<< "%: %.tex\n"
<< "%: SCCS/s.%\n\n";
}
// Add a fake suffix to keep HP happy. Must be max 32 chars for SGI make. // Add a fake suffix to keep HP happy. Must be max 32 chars for SGI make.
std::vector<std::string> depends; std::vector<std::string> depends;
depends.push_back(".hpux_make_needs_suffix_list"); depends.push_back(".hpux_make_needs_suffix_list");