]> git.draconx.ca Git - dxcommon.git/commitdiff
fix-gnulib: Fix up $(MKDIR_P) paths as well.
authorNick Bowler <nbowler@draconx.ca>
Thu, 10 May 2012 02:16:37 +0000 (22:16 -0400)
committerNick Bowler <nbowler@draconx.ca>
Thu, 10 May 2012 02:16:37 +0000 (22:16 -0400)
Otherwise it will create the directory at the top level rather than
where it's going to write the output...

scripts/fix-gnulib.pl

index 85ae6321980e743632f2e3c911e3b2314f460139..d4ea7d1b68cac82f0932a654cf3e021768b6e0e2 100755 (executable)
@@ -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