diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp index 131bbb5303..a3e4b117ef 100644 --- a/qmake/generators/makefile.cpp +++ b/qmake/generators/makefile.cpp @@ -2473,6 +2473,13 @@ MakefileGenerator::writeSubTargets(QTextStream &t, QListtarget << "-qmake_all: "; + if (flags & SubTargetOrdered) { + if (target) + t << targets.at(target - 1)->target << "-qmake_all"; + } else { + if (!subtarget->depends.isEmpty()) + t << valGlue(subtarget->depends, QString(), "-qmake_all ", "-qmake_all"); + } if(project->isEmpty("QMAKE_NOFORCE")) t << " FORCE"; t << "\n\t";