qmake/generators/makefile.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
child 8 3f74d0d4af4c
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
  1828                         }
  1828                         }
  1829                         if(!files.isEmpty())
  1829                         if(!files.isEmpty())
  1830                             cleans.append(files);
  1830                             cleans.append(files);
  1831                     }
  1831                     }
  1832                 }
  1832                 }
  1833                 if(!cleans.isEmpty())
  1833                 if(!cleans.isEmpty()) {
  1834                     if (isForSymbian())
  1834                     if (isForSymbian())
  1835                         t << valGlue(cleans, "\n\t" + del_statement, " 2> NUL\n\t" + del_statement, " 2> NUL");
  1835                         t << valGlue(cleans, "\n\t" + del_statement, " 2> NUL\n\t" + del_statement, " 2> NUL");
  1836                     else
  1836                     else
  1837                         t << valGlue(cleans, "\n\t" + del_statement, "\n\t" + del_statement, "");
  1837                         t << valGlue(cleans, "\n\t" + del_statement, "\n\t" + del_statement, "");
       
  1838                 }
  1838                 if(!wrote_clean_cmds) {
  1839                 if(!wrote_clean_cmds) {
  1839                     for(QStringList::ConstIterator input = tmp_inputs.begin(); input != tmp_inputs.end(); ++input) {
  1840                     for(QStringList::ConstIterator input = tmp_inputs.begin(); input != tmp_inputs.end(); ++input) {
  1840                         t << "\n\t" << replaceExtraCompilerVariables(tmp_clean_cmds, (*input),
  1841                         t << "\n\t" << replaceExtraCompilerVariables(tmp_clean_cmds, (*input),
  1841                                          replaceExtraCompilerVariables(tmp_out, (*input), QString()));
  1842                                          replaceExtraCompilerVariables(tmp_out, (*input), QString()));
  1842                     }
  1843                     }
  2539             t << varGlue("QMAKE_CLEAN","\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ", "\n");
  2540             t << varGlue("QMAKE_CLEAN","\t-$(DEL_FILE) ","\n\t-$(DEL_FILE) ", "\n");
  2540         } else if(suffix == "distclean") {
  2541         } else if(suffix == "distclean") {
  2541             QString ofile = Option::fixPathToTargetOS(fileFixify(Option::output.fileName()));
  2542             QString ofile = Option::fixPathToTargetOS(fileFixify(Option::output.fileName()));
  2542             if(!ofile.isEmpty())
  2543             if(!ofile.isEmpty())
  2543                 t << "\t-$(DEL_FILE) " << ofile << endl;
  2544                 t << "\t-$(DEL_FILE) " << ofile << endl;
       
  2545             t << varGlue("QMAKE_DISTCLEAN","\t-$(DEL_FILE) "," ","\n");
  2544         } else if(project->isActiveConfig("no_empty_targets")) {
  2546         } else if(project->isActiveConfig("no_empty_targets")) {
  2545             t << "\t" << "@cd ." << endl;
  2547             t << "\t" << "@cd ." << endl;
  2546         }
  2548         }
  2547     }
  2549     }
  2548 
  2550