From 813779d962866b77b5dd1106d67ff002ec35b354 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 18 Mar 2008 10:02:31 -0400 Subject: [PATCH] ENH: try to improve make speed by getting rid of some implicit rules that were still around. --- Source/cmLocalUnixMakefileGenerator3.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index fc5acc9ab..af82d4ad4 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -738,6 +738,18 @@ cmLocalUnixMakefileGenerator3 makefileStream, "Disable implicit rules so canoncical targets will work.", ".SUFFIXES", no_depends, no_commands, false); + // turn off RCS and SCCS automatic stuff from gmake + 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" + << "# on targets that never exist.\n" + << "%: %,v\n" + << "%: RCS/%,v\n" + << "%: RCS/%\n" + << "%: s.%\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. std::vector depends; depends.push_back(".hpux_make_needs_suffix_list");