respect copy_dir_files with manually flagged directories as well
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Mon, 6 Aug 2012 19:45:58 +0000 (21:45 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 7 Aug 2012 14:40:07 +0000 (16:40 +0200)
otherwise the second installation on unix would be bogus.

Change-Id: I162533ee262c6820e7e2d4710b5342cafecd9d59
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
qmake/generators/makefile.cpp

index 4cfcf35..3025a5c 100644 (file)
@@ -1270,9 +1270,11 @@ MakefileGenerator::writeInstalls(QTextStream &t, const QString &installs, bool n
                     QString cmd;
                     if (installConfigValues.contains("directory")) {
                         cmd = QLatin1String("-$(INSTALL_DIR)");
-                        if (!dst_file.endsWith(Option::dir_sep))
-                            dst_file += Option::dir_sep;
-                        dst_file += fi.fileName();
+                        if (project->isActiveConfig("copy_dir_files")) {
+                            if (!dst_file.endsWith(Option::dir_sep))
+                                dst_file += Option::dir_sep;
+                            dst_file += filestr;
+                        }
                     } else if (installConfigValues.contains("executable")) {
                         cmd = QLatin1String("-$(INSTALL_PROGRAM)");
                     } else {