summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-18 15:28:59 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-18 15:28:59 (GMT)
commitcb512cd513748969a1d6e66112d1bbe143140748 (patch)
treeec362aa1a8ed65311f2085b6aca636bcbbc0e708 /Source/cmLocalUnixMakefileGenerator3.cxx
parent813779d962866b77b5dd1106d67ff002ec35b354 (diff)
downloadCMake-cb512cd513748969a1d6e66112d1bbe143140748.zip
CMake-cb512cd513748969a1d6e66112d1bbe143140748.tar.gz
CMake-cb512cd513748969a1d6e66112d1bbe143140748.tar.bz2
ENH: turn off extra rules for nmake and wmake
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx28
1 files changed, 16 insertions, 12 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index af82d4a..9cd023e 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -738,18 +738,22 @@ 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";
+ if(!this->NMake && !this->WatcomWMake)
+ {
+ // 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"
+ << "SUFFIXES =\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<std::string> depends;
depends.push_back(".hpux_make_needs_suffix_list");