diff options
author | Thomas Zander <t.zander@nokia.com> | 2010-01-13 16:08:55 (GMT) |
---|---|---|
committer | Thomas Zander <t.zander@nokia.com> | 2010-01-19 14:37:47 (GMT) |
commit | c0e094d924d6fc095f52b336f02db5d41f71ab48 (patch) | |
tree | 16b6fa22ba02193d066ee4e4a36e3c1db6a64901 /qmake | |
parent | 8aa93a61de0db9bbcfe8ed10c075af50673de78a (diff) | |
download | Qt-c0e094d924d6fc095f52b336f02db5d41f71ab48.zip Qt-c0e094d924d6fc095f52b336f02db5d41f71ab48.tar.gz Qt-c0e094d924d6fc095f52b336f02db5d41f71ab48.tar.bz2 |
Fix rules for recreating the Makefile in a subdir
The code generated would always create the Makefile in the sourcedir, even
if you had src!=build
Diffstat (limited to 'qmake')
-rw-r--r-- | qmake/generators/makefile.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index 2bf9e7b..b2468d7 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -2411,17 +2411,17 @@ MakefileGenerator::writeSubTargets(QTextStream &t, QList<MakefileGenerator::SubT //qmake it if(!subtarget->profile.isEmpty()) { - QString out = out_directory + subtarget->makefile, - in = fileFixify(in_directory + subtarget->profile, in_directory); + QString out = subtarget->makefile; + QString in = fileFixify(in_directory + subtarget->profile, in_directory); if(in.startsWith(in_directory)) in = in.mid(in_directory.length()); if(out.startsWith(in_directory)) out = out.mid(in_directory.length()); t << mkfile << ": " << "\n\t"; if(!in_directory.isEmpty()) { - t << mkdir_p_asstring(in_directory) - << in_directory_cdin - << "$(QMAKE) " << in << buildArgs(in_directory) << " -o " << out + t << mkdir_p_asstring(out_directory) + << out_directory_cdin + << "$(QMAKE) " << subtarget->in_directory << QDir::separator() << in << buildArgs(in_directory) << " -o " << out << in_directory_cdout << endl; } else { t << "$(QMAKE) " << in << buildArgs(in_directory) << " -o " << out << endl; @@ -2431,9 +2431,9 @@ MakefileGenerator::writeSubTargets(QTextStream &t, QList<MakefileGenerator::SubT t << " FORCE"; t << "\n\t"; if(!in_directory.isEmpty()) { - t << mkdir_p_asstring(in_directory) - << in_directory_cdin - << "$(QMAKE) " << in << buildArgs(in_directory) << " -o " << out + t << mkdir_p_asstring(out_directory) + << out_directory_cdin + << "$(QMAKE) " << subtarget->in_directory << QDir::separator() << in << buildArgs(in_directory) << " -o " << out << in_directory_cdout << endl; } else { t << "$(QMAKE) " << in << buildArgs(in_directory) << " -o " << out << endl; |