]> git.draconx.ca Git - dxcommon.git/blobdiff - scripts/fix-gnulib.pl
fix-gnulib: Fix up $(MKDIR_P) paths as well.
[dxcommon.git] / 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