Changeset 180
- Timestamp:
- Apr 27, 2006, 10:05:38 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CMT/HEAD/source/cmt_parser.cxx
r144 r180 2100 2100 2101 2101 CmtSystem::scan_dir (".", expression, makes); 2102 2102 2103 2103 if (makes.size () > 0) 2104 2104 { … … 2108 2108 { 2109 2109 const cmt_string& s = makes[i]; 2110 CmtSystem::remove_file (s); 2111 } 2112 } 2110 CmtSystem::cmt_string_vector words; 2111 CmtSystem::split (s, '.', words); 2112 if (words.size()>=2) 2113 if (CmtSystem::get_makefile_suffix () == "nmake" && words[1] == "nmake") 2114 CmtSystem::remove_file (s); 2115 else if (CmtSystem::get_makefile_suffix () == "make" && words[1] == "make") 2116 CmtSystem::remove_file (s); 2117 } 2118 } 2119 2113 2120 2114 2121 CmtSystem::cd (".."); … … 2123 2130 for (int i = 0; i < makes.size (); i++) 2124 2131 { 2125 const cmt_string& s = makes[i]; 2126 CmtSystem::remove_file (s); 2132 const cmt_string& s = makes[i]; 2133 CmtSystem::cmt_string_vector words; 2134 CmtSystem::split (s, '.', words); 2135 if (words.size()>=2) 2136 if (CmtSystem::get_makefile_suffix () == "nmake" && words[1] == "nmake") 2137 CmtSystem::remove_file (s); 2138 else if (CmtSystem::get_makefile_suffix () == "make" && words[1] == "make") 2139 CmtSystem::remove_file (s); 2127 2140 } 2128 2141 } 2142 //exit(-1); 2129 2143 2130 2144 /*
Note: See TracChangeset
for help on using the changeset viewer.