From bfc45d64ca8ad53b1ac7c446b066699fecb7d2c3 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 9 May 2012 22:16:37 -0400 Subject: [PATCH] fix-gnulib: Fix up $(MKDIR_P) paths as well. Otherwise it will create the directory at the top level rather than where it's going to write the output... --- scripts/fix-gnulib.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/fix-gnulib.pl b/scripts/fix-gnulib.pl index 85ae632..d4ea7d1 100755 --- a/scripts/fix-gnulib.pl +++ b/scripts/fix-gnulib.pl @@ -193,6 +193,11 @@ EOF $_ = mangle_target($_); } + # MKDIR_P commands need to be fixed up; in principle Gnulib could also + # be patched here to use $(@D) instead (and thus automatically benefit + # from the target being fixed up), but this will do for now. + s/^(\t.*\$\(MKDIR_P\)) ([[:alnum:]]+)$/\1 lib\/\2/; + # When using conditional-dependencies, *CLEANFILES can end up # depending on the configuration. This means that "make distclean" # may not actually delete everything if the configuration changes -- 2.43.0