include: avoid "deleted .am file" problem
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sun, 16 Oct 2011 12:57:37 +0000 (14:57 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 22 Dec 2011 18:00:43 +0000 (19:00 +0100)
commit9f7864ba9b8a12761db67c16025c45ed95aca47e
tree528431dd9d2afb0562ceeb70f3c6dce04622cf0c
parentb7d67d5551bc9d6dac34deda5f82e9292a2cdbb5
include: avoid "deleted .am file" problem

* automake.in (handle_configure): When processing `configure.am',
also expand `HAVE-MAKEFILE-IN-DEPS' to a boolean telling whether
`MAKEFILE-IN-DEPS' is empty or not.
* lib/am/configure.am [?HAVE-MAKEFILE-IN-DEPS?]
(%MAKEFILE-IN-DEPS%): New target without dependencies, to
avoid the "deleted .am file" problem.  Emit this only when
`?HAVE-MAKEFILE-IN-DEPS?' is true, to avoid generating an
"empty" dependency declaration.
* tests/deleted-am.test: Make grepping of error message stricter.
* tests/dist-missing-am.test: Likewise.
* tests/remake-deleted-am.test: New test.
* tests/remake-deleted-am-2.test: Likewise.
* tests/remake-deleted-am-subdir.test: Likewise.
* tests/remake-renamed-am.test: Likewise.
* tests/makefile-deps.test: Likewise.
* tests/Makefile.am (TESTS): Add the new tests.
* NEWS: Update.

Fixes automake bug#9768.

Report by Peter Johansson.

See also commit `Release-1-10-40-gd0ebf71', which fixed a similar
problem for .m4 files included by configure.ac.
12 files changed:
ChangeLog
NEWS
automake.in
lib/am/configure.am
tests/Makefile.am
tests/deleted-am.test
tests/dist-missing-am.test
tests/makefile-deps.test [new file with mode: 0755]
tests/remake-deleted-am-2.test [new file with mode: 0755]
tests/remake-deleted-am-subdir.test [new file with mode: 0755]
tests/remake-deleted-am.test [new file with mode: 0755]
tests/remake-renamed-am.test [new file with mode: 0755]