dist: separate auxiliary file instantiation from DIST_COMMON update
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 7 Oct 2011 18:53:08 +0000 (20:53 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 8 Oct 2011 19:19:34 +0000 (21:19 +0200)
commit7318775d14414207c3254775b4d1232cf09e602b
treebd0fbaedd501aadd84e86d66b6c9bf6786d17ff4
parent6571c2fd4e7eca643f7d994efad52a4120118ccc
dist: separate auxiliary file instantiation from DIST_COMMON update

This change simplifies the automake internals dealing with the
checking, copying and distributing of required auxiliary files.
With this change, a required auxiliary file is *unconditionally*
added to the contents of the DIST_COMMON variable in the generated
Makefile.in, before checking whether it exists, or trying to copy
it (if `--add-missing' is in use).  This shouldn't be a problem,
since if the checking or copying of the file fails, automake will
bail out, the Makefile.in won't be created, and thus its content
will not matter.  OK, this is not completely true when threaded
automake is in use, but then, such a situation was also possible
before this patch, so no regression here, which is enough for us.

This change is the first of a series of steps aimed at fixing
the regression introduced in threaded automake usage by commit
`v1.11-1219-g326ecba'.

* automake.in (require_file_internal): Add the required file to
DIST_COMMON unconditionally.
* tests/missing-auxfile-stops-makefiles-creation.test: New test.
* tests/Makefile.am (TESTS): Add it.
ChangeLog
automake.in
tests/Makefile.am
tests/Makefile.in
tests/missing-auxfile-stops-makefiles-creation.test [new file with mode: 0755]