autotools: Skip empty parts in target lists

AFAIR this was about automake variables declared like this:

	bin_PROGRAMS = \
		foo \
		bar

Change-Id: Ic48b782cc65ca3489f4b9f7ea439ff3e3531e36a
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Mathias Hasselmann
2012-08-16 11:10:30 +02:00
committed by hjk
parent 22f975948b
commit 6caf58c0f0

View File

@@ -360,7 +360,7 @@ QStringList MakefileParser::targetValues(bool *hasVariables)
// Get all values of a line separated by spaces. // Get all values of a line separated by spaces.
// Values representing a variable like $(value) get // Values representing a variable like $(value) get
// removed currently. // removed currently.
QStringList lineValues = m_line.split(QLatin1Char(' ')); QStringList lineValues = m_line.split(QLatin1Char(' '), QString::SkipEmptyParts);
QStringList::iterator it = lineValues.begin(); QStringList::iterator it = lineValues.begin();
while (it != lineValues.end()) { while (it != lineValues.end()) {
if ((*it).startsWith(QLatin1String("$("))) { if ((*it).startsWith(QLatin1String("$("))) {