automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNU Automake 1.12.1 released


From: Stefano Lattarini
Subject: Re: GNU Automake 1.12.1 released
Date: Mon, 09 Jul 2012 10:36:51 +0200

On 07/09/2012 09:22 AM, Jim Meyering wrote:
>
> 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.
>
That is simply enough to do if we content ourselves with a substitution
that makes it usable in Makefiles only:

    AC_SUBST([mkdir_p], ['$(MKDIR_P)'])

See attached patch.  OK?

Regards,
  Stefano

Attachment: 0001-compat-automake-should-substitute-mkdir_p-for-backwa.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]