[PATCH] makedepend: Quote colons in filenames/paths

Antonio Larrosa alarrosa at suse.com
Tue Feb 2 18:31:26 CET 2016

When using makedepend to build the Qt library I noticed the generated 
Makefiles gave parsing problems related to the colons in some full paths
that gmake didn't understand [1].
Quoting the colons [2] fixed the problem, so this patch makes makedepend
quote all colons in the output dependencies.

[1] The previous output was along these lines:
main.o: /home/antonio/obs/home:alarrosa:branches:KDE:Qt5/libqt5-qtbase/qtbase-opensource-src-5.5.1/qmake/library/qmakeevaluator.h

[2] The new output which gmake can parse correctly is:
main.o: /home/antonio/obs/home\:alarrosa\:branches\:KDE\:Qt5/libqt5-qtbase/qtbase-opensource-src-5.5.1/qmake/library/qmakeevaluator.h

Antonio Larrosa (1):
  Quote colons in filenames/paths

 pr.c | 42 ++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 40 insertions(+), 2 deletions(-)


More information about the xorg-devel mailing list