Changeset 189 for trunk/qmake/generators/makefile.cpp
- Timestamp:
- Sep 22, 2009, 2:10:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/makefile.cpp
r162 r189 1799 1799 if(tmp_clean.isEmpty()) 1800 1800 tmp_clean = tmp_out; 1801 1802 1803 1804 1805 1806 1807 1801 1808 if(tmp_clean.indexOf("${QMAKE_") == -1) { 1802 t << "\n\t" << "-$(DEL_FILE) " << tmp_clean;1809 t << "\n\t" << ; 1803 1810 wrote_clean = true; 1804 1811 } 1805 1812 if(!wrote_clean_cmds || !wrote_clean) { 1806 1813 QStringList cleans; 1807 const QString del_statement("-$(DEL_FILE)");1808 1814 if(!wrote_clean) { 1809 1815 if(project->isActiveConfig("no_delete_multiple_files")) { … … 1813 1819 } else { 1814 1820 QString files, file; 1815 const int commandlineLimit = 2047; // NT limit, expanded 1821 const int commandlineLimit = 1822 Option::target_mode == Option::TARG_OS2_MODE ? 1823 1000: // OS/2 CMD.EXE limit (1024 - suffix - reserve) 1824 2047; // NT limit, expanded 1816 1825 for(int input = 0; input < tmp_inputs.size(); ++input) { 1817 1826 file = " " + replaceExtraCompilerVariables(tmp_clean, tmp_inputs.at(input), … … 1829 1838 } 1830 1839 if(!cleans.isEmpty()) 1831 t << valGlue(cleans, "\n\t" + del_statement, "\n\t" + del_statement, "");1840 t << valGlue(cleans, "\n\t" + del_statement, ); 1832 1841 if(!wrote_clean_cmds) { 1833 1842 for(QStringList::ConstIterator input = tmp_inputs.begin(); input != tmp_inputs.end(); ++input) { … … 2493 2502 t << " FORCE"; 2494 2503 t << endl; 2504 2505 2506 2507 2495 2508 if(suffix == "clean") { 2496 t << varGlue("QMAKE_CLEAN","\t-$(DEL_FILE) ", "\n\t-$(DEL_FILE) ", "\n");2509 t << varGlue("QMAKE_CLEAN","\t-$(DEL_FILE) ",); 2497 2510 } else if(suffix == "distclean") { 2498 2511 QString ofile = Option::fixPathToTargetOS(fileFixify(Option::output.fileName())); 2499 2512 if(!ofile.isEmpty()) 2500 t << "\t-$(DEL_FILE) " << ofile << endl;2513 t << "\t-$(DEL_FILE) " << ofile << endl; 2501 2514 } else if(project->isActiveConfig("no_empty_targets")) { 2502 2515 t << "\t" << "@cd ." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.