forked from qt-creator/qt-creator
QmakePM: Fix redundant execution of qmake on build file
... when Makefile is customized. The resolved makefile was <directory>Makefile.custom instead of <directory>/Makefile.custom. Change-Id: I01c4ef8b6d4ba64fc6663219c2eab7a39e03888b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
ea86ff5eb0
commit
b57553b7a2
@@ -225,19 +225,18 @@ bool QMakeStep::init(QList<const BuildStep *> &earlierSteps)
|
|||||||
m_makeArguments.clear();
|
m_makeArguments.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString makefile = workingDirectory;
|
QString makefile = workingDirectory + '/';
|
||||||
|
|
||||||
if (qmakeBc->subNodeBuild()) {
|
if (qmakeBc->subNodeBuild()) {
|
||||||
QmakeProFile *pro = qmakeBc->subNodeBuild()->proFile();
|
QmakeProFile *pro = qmakeBc->subNodeBuild()->proFile();
|
||||||
if (pro && !pro->makefile().isEmpty())
|
if (pro && !pro->makefile().isEmpty())
|
||||||
makefile.append(pro->makefile());
|
makefile.append(pro->makefile());
|
||||||
else
|
else
|
||||||
makefile.append(QLatin1String("/Makefile"));
|
makefile.append("Makefile");
|
||||||
} else if (!qmakeBc->makefile().isEmpty()) {
|
} else if (!qmakeBc->makefile().isEmpty()) {
|
||||||
makefile.append(QLatin1Char('/'));
|
|
||||||
makefile.append(qmakeBc->makefile());
|
makefile.append(qmakeBc->makefile());
|
||||||
} else {
|
} else {
|
||||||
makefile.append(QLatin1String("/Makefile"));
|
makefile.append("Makefile");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check whether we need to run qmake
|
// Check whether we need to run qmake
|
||||||
|
|||||||
Reference in New Issue
Block a user