Move the SUBLIBS target from qmake away from between clean/distclean
Right now, the sublib targets, if any, show up between clean and distclean targets. That's silly. I doubt anyone is using sublib targets anyway, but... Change-Id: I2beffc69f68fa7626ff4aa4a7cc1169b2c6c69a7 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
28b85835bb
commit
154b539465
@ -898,17 +898,6 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
|
||||
t << varGlue("QMAKE_CLEAN","-$(DEL_FILE) "," ","\n\t")
|
||||
<< "-$(DEL_FILE) *~ core *.core\n"
|
||||
<< varGlue("CLEAN_FILES","\t-$(DEL_FILE) "," ","") << endl << endl;
|
||||
t << "####### Sub-libraries\n\n";
|
||||
if (!project->values("SUBLIBS").isEmpty()) {
|
||||
ProString libdir = "tmp/";
|
||||
if(!project->isEmpty("SUBLIBS_DIR"))
|
||||
libdir = project->first("SUBLIBS_DIR");
|
||||
const ProStringList &l = project->values("SUBLIBS");
|
||||
for(it = l.begin(); it != l.end(); ++it)
|
||||
t << libdir << project->first("QMAKE_PREFIX_STATICLIB") << (*it) << "."
|
||||
<< project->first("QMAKE_EXTENSION_STATICLIB") << ":\n\t"
|
||||
<< var(ProKey("MAKELIB" + *it)) << endl << endl;
|
||||
}
|
||||
|
||||
ProString destdir = project->first("DESTDIR");
|
||||
if (!destdir.isEmpty() && !destdir.endsWith(Option::dir_sep))
|
||||
@ -935,6 +924,18 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
|
||||
}
|
||||
t << endl << endl;
|
||||
|
||||
t << "####### Sub-libraries\n\n";
|
||||
if (!project->values("SUBLIBS").isEmpty()) {
|
||||
ProString libdir = "tmp/";
|
||||
if (!project->isEmpty("SUBLIBS_DIR"))
|
||||
libdir = project->first("SUBLIBS_DIR");
|
||||
const ProStringList &l = project->values("SUBLIBS");
|
||||
for (it = l.begin(); it != l.end(); ++it)
|
||||
t << libdir << project->first("QMAKE_PREFIX_STATICLIB") << (*it) << "."
|
||||
<< project->first("QMAKE_EXTENSION_STATICLIB") << ":\n\t"
|
||||
<< var(ProKey("MAKELIB" + *it)) << endl << endl;
|
||||
}
|
||||
|
||||
if(doPrecompiledHeaders() && !project->isEmpty("PRECOMPILED_HEADER")) {
|
||||
QString pchInput = project->first("PRECOMPILED_HEADER").toQString();
|
||||
t << "###### Precompiled headers\n";
|
||||
|
Loading…
Reference in New Issue
Block a user