Changeset 194 for trunk/qmake/generators/os2/gnumake.cpp
- Timestamp:
- Sep 26, 2009, 1:28:06 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/os2/gnumake.cpp
r158 r194 87 87 QString GNUMakefileGenerator::escapeDependencyPath(const QString &path) const 88 88 { 89 /* dependency escaping is always done Unix-way since this is a requirement 90 * of GNU make which allows " and ' to be part of the file name */ 89 // dependency escaping is always done Unix-way since this is a requirement 90 // of GNU make which allows " and ' to be part of the file name. 91 // Note that if the string is a make variable reference, we don't eascape! 91 92 QString ret = path; 92 ret.remove('\"'); 93 ret.replace(' ', "\\ "); 93 QString trimmed = path.trimmed(); 94 if (!trimmed.startsWith("$(") || !trimmed.endsWith(")")) { 95 ret.remove('\"'); 96 ret.replace(' ', "\\ "); 97 } 94 98 return ret; 95 99 } … … 695 699 if (isDosLikeShell()) { 696 700 QString ret = vars; 697 ret.replace(QRegExp("\\$\\((.+)\\)"), "$(call q,$(\\1))"); 701 QRegExp rx = QRegExp("\\$\\((.+)\\)"); 702 rx.setMinimal(true); 703 ret.replace(rx, "$(call q,$(\\1))"); 698 704 return ret; 699 705 }
Note:
See TracChangeset
for help on using the changeset viewer.