* Makefile.am (maintainer-check): Check for mkdir_p in automake.in
authorAlexandre Duret-Lutz <adl@gnu.org>
Sun, 20 Aug 2006 15:47:07 +0000 (15:47 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sun, 20 Aug 2006 15:47:07 +0000 (15:47 +0000)
too.
* automake.in (require_build_directory): Use MKDIR_P, not mkdir_p.

ChangeLog
Makefile.am
automake.in

index 5f62d0d..c51853f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2006-08-20  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * Makefile.am (maintainer-check): Check for mkdir_p in automake.in
+       too.
+       * automake.in (require_build_directory): Use MKDIR_P, not mkdir_p.
+
        * m4/mkdirp.m4: Typo in previous patch.
 
        * Makefile.am (maintainer-check): Fine-tune the "Unescaped @"
index 0c12a2a..0e13d96 100644 (file)
@@ -268,7 +268,8 @@ maintainer-check: automake aclocal
          echo 'Do not use egrep or fgrep in the above files, they are not portable.' 1>&2; \
          exit 1; \
        fi
-       @if grep 'mkdir_p' $(srcdir)/lib/am/*.am $(srcdir)/tests/*.test; then \
+       @if grep 'mkdir_p' $(srcdir)/automake.in \
+             $(srcdir)/lib/am/*.am $(srcdir)/tests/*.test; then \
          echo 'Do not use mkdir_p in the above files, use MKDIR_P.' 1>&2; \
          exit 1; \
        fi
index 1d4d5eb..35fb198 100755 (executable)
@@ -4032,7 +4032,7 @@ sub handle_configure ($$$@)
     }
   else
     {
-      # Use $(install_sh), not $(mkdir_p) because the latter requires
+      # Use $(install_sh), not $(MKDIR_P) because the latter requires
       # at least one argument, and $(mkinstalldirs) used to work
       # even without arguments (e.g. $(mkinstalldirs) $(conditional_dir)).
       define_variable ('mkinstalldirs', '$(install_sh) -d', INTERNAL);
@@ -7294,7 +7294,7 @@ sub require_build_directory ($)
   $clean_files{$dirstamp} = DIST_CLEAN;
 
   $output_rules .= ("$dirstamp:\n"
-                   . "\t\@\$(mkdir_p) $directory\n"
+                   . "\t\@\$(MKDIR_P) $directory\n"
                    . "\t\@: > $dirstamp\n");
 
   return $dirstamp;