Stefano Lattarini wrote: > On 07/06/2012 12:10 AM, Diego Elio Pettenò wrote: >> Il 05/07/2012 11:26, Stefano Lattarini ha scritto: >>> How so? Removal of $(mkdir_p) is only planned for Automake 1.13, that is >>> still unreleased. >> >> Ehm Stefano, that's definitely not the case, I've been hitting that >> issue in Gentoo in many packages. >> >> https://bugs.gentoo.org/show_bug.cgi?id=automake-1.12 >> >> mkdir_p is gone in automake-1.12.1 for what we're concerned — I also >> listed it in the 1.12 instead of "planned for 1.13" in my own guide >> http://goo.gl/bda6l as I thought it was intentional. >> > Ouch, I can reproduce this :-/ The issue is that the call to > AM_PROG_MKDIR_P in AM_INIT_AUTOMAKE has been substituted by a > call to AC_PROG_MKDIR_P, which doesn't define $(mkdir_p). This > was an unintended regression. > > I will soon push the attached patches to take care of the problem. > Note that they only re-introduce the $(mkdir_p) variable (because > is very easy to do so), but not the @mkdir_p@ substitution. Anyone > knows if this can create problems in practice?
Hi Stefano, I see that @mkdir_p@ is used in gettext's Makefile.in.in template: # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ Since that file is copied into many projects, I'd recommend to substitute @mkdir_p@, as well.