On Thu, 2 Aug 2012, Akim Demaille wrote:
Le 2 août 2012 à 11:47, Stefano Lattarini a écrit :
Instead of copying their contents in each output Makefile.
* automake.in (verbatim): Instead of copying the given Makefile fragment
in the output makefile, copy it in the '.mk' subdirectory of the top-level
source directory (i.e., the one automake is being run into). And return
a proper "include" directive that will allow GNU make to include that
fragment in the generated Makefile at make runtime.
* lib/am/distdir.am: Distribute the '.mk' subdirectory of the top-level
source directory, with the help of ...
(am.dist.mk-files): ... this new internal variable.
* .gitignore: Add the '.mk' directory.
I like very much the idea, but I don't really like the name. Why
hide it? It will show anyway. IMHO, this should be
build-aux/automake/ or build-aux/mk.
While skimming the interesting changeset (which seems like a good
idea) I had not noticed that it was using a "hidden" directory.
IMHO, any file included by 'make dist' should not be in a hidden
directory. Hidden directories should only be used for build temporary
files.
Some projects will choose to check these files into their version
control systems and attempting to hide them would only make things
more confusing.
In other words, I agree with Akim. :-)
Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/