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 @"
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
}
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);
$clean_files{$dirstamp} = DIST_CLEAN;
$output_rules .= ("$dirstamp:\n"
- . "\t\@\$(mkdir_p) $directory\n"
+ . "\t\@\$(MKDIR_P) $directory\n"
. "\t\@: > $dirstamp\n");
return $dirstamp;