gnulib-tool-py
[Top][All Lists]
Advanced

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

Re: [gnulib-tool-py] ACLOCAL_AMFLAGS and Makefile.am


From: Bruno Haible
Subject: Re: [gnulib-tool-py] ACLOCAL_AMFLAGS and Makefile.am
Date: Tue, 22 May 2012 13:42:58 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Hi Dmitriy,

> Refactoring the code I've commited last time and working on its
> improvement, I've found an interesting place (line 6336):
> aclocal_amflags=`sed -n -e 's/^ACLOCAL_AMFLAGS[     ]*=\(.*\)$/\1/p'
> "$destdir"/Makefile.am`
> 
> Shouldn't it available for user to set --makefile-name=NAME to let this
> command get ACLOCAL_AMFLAGS from the other Makefile?
> aclocal_amflags=`sed -n -e 's/^ACLOCAL_AMFLAGS[     ]*=\(.*\)$/\1/p'
> "$destdir"/"$makefile_name"`

There are two misunderstandings here:
  1) The filename specified by --makefile-name=NAME is an output file
     (i.e. it is overwritten by gnulib-tool if it happened to exist),
     and it resides in the directories specified by --source-base and
     --tests-base. Whereas the toplevel Makefile.am gets only minimally
     modified by gnulib-tool.
  2) The ACLOCAL_AMFLAGS are project-wide settings. They are specified
     *only* in the top-level Makefile.am.

Possibly you need to have a closer look at a project that uses gnulib,
like those that Stefano mentioned (thanks Stefano for jumping in!) or
GNU Hello?

Bruno




reply via email to

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