summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-12-09 13:44:36 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-02-12 15:48:10 (GMT)
commit8e7fe402ab07c016fd0ba7d9fae395e532b4dfc5 (patch)
treec06a03708b0917fee4cdfdd689a865c40512ce99
parent123ccf7a63e2908c0a4f7035a6e1802dca73f217 (diff)
downloadQt-8e7fe402ab07c016fd0ba7d9fae395e532b4dfc5.zip
Qt-8e7fe402ab07c016fd0ba7d9fae395e532b4dfc5.tar.gz
Qt-8e7fe402ab07c016fd0ba7d9fae395e532b4dfc5.tar.bz2
move $(DEL_FILE) 2> NUL redirection into .conf file
littering generic makefile generator code with it is both plain ugly and unnecessary. Reviewed-by: mariusSO
-rw-r--r--mkspecs/common/symbian/symbian.conf2
-rw-r--r--qmake/generators/makefile.cpp16
2 files changed, 3 insertions, 15 deletions
diff --git a/mkspecs/common/symbian/symbian.conf b/mkspecs/common/symbian/symbian.conf
index 7360d74..f1a6788 100644
--- a/mkspecs/common/symbian/symbian.conf
+++ b/mkspecs/common/symbian/symbian.conf
@@ -87,7 +87,7 @@ QMAKE_LIBS_S60 = -lavkon
QMAKE_COPY = copy /y
QMAKE_COPY_DIR = xcopy /s /q /y /i
QMAKE_MOVE = move
- QMAKE_DEL_FILE = del
+ QMAKE_DEL_FILE = del 2> NUL
QMAKE_MKDIR = mkdir
QMAKE_DEL_DIR = rmdir
QMAKE_CHK_DIR_EXISTS = if not exist
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index ae43e2b..ec712a0 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -65,12 +65,6 @@
#include <sys/types.h>
#include <sys/stat.h>
-#ifdef Q_OS_WIN32
-#define NO_STDERR "2> NUL"
-#else
-#define NO_STDERR "2>/dev/null"
-#endif
-
QT_BEGIN_NAMESPACE
// Well, Windows doesn't have this, so here's the macro
@@ -1814,8 +1808,6 @@ MakefileGenerator::writeExtraCompilerTargets(QTextStream &t)
tmp_clean = tmp_out;
if(tmp_clean.indexOf("${QMAKE_") == -1) {
t << "\n\t" << "-$(DEL_FILE) " << tmp_clean;
- if (isForSymbian())
- t << " " << NO_STDERR; // Eliminate unnecessary warnings
wrote_clean = true;
}
if(!wrote_clean_cmds || !wrote_clean) {
@@ -1843,12 +1835,8 @@ MakefileGenerator::writeExtraCompilerTargets(QTextStream &t)
cleans.append(files);
}
}
- if(!cleans.isEmpty()) {
- if (isForSymbian())
- t << valGlue(cleans, "\n\t" + del_statement, " " NO_STDERR "\n\t" + del_statement, " " NO_STDERR);
- else
- t << valGlue(cleans, "\n\t" + del_statement, "\n\t" + del_statement, "");
- }
+ if(!cleans.isEmpty())
+ t << valGlue(cleans, "\n\t" + del_statement, "\n\t" + del_statement, "");
if(!wrote_clean_cmds) {
for(QStringList::ConstIterator input = tmp_inputs.begin(); input != tmp_inputs.end(); ++input) {
t << "\n\t" << replaceExtraCompilerVariables(tmp_clean_cmds, (*input),