From: Alexandre Duret-Lutz Date: Sun, 20 Aug 2006 15:47:07 +0000 (+0000) Subject: * Makefile.am (maintainer-check): Check for mkdir_p in automake.in X-Git-Tag: v1.10.2~173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9317edef78dee29f1bf65b7490e215bb185d619;p=platform%2Fupstream%2Fautomake.git * Makefile.am (maintainer-check): Check for mkdir_p in automake.in too. * automake.in (require_build_directory): Use MKDIR_P, not mkdir_p. --- diff --git a/ChangeLog b/ChangeLog index 5f62d0d..c51853f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-08-20 Alexandre Duret-Lutz + * 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 @" diff --git a/Makefile.am b/Makefile.am index 0c12a2a..0e13d96 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 diff --git a/automake.in b/automake.in index 1d4d5eb..35fb198 100755 --- a/automake.in +++ b/automake.in @@ -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;