From: Nick Bowler Date: Thu, 10 May 2012 02:16:37 +0000 (-0400) Subject: fix-gnulib: Fix up $(MKDIR_P) paths as well. X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/bfc45d64ca8ad53b1ac7c446b066699fecb7d2c3 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... --- 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