Some maintainer checks were too greedy in processing 'Makefile.am'
files, looking for them even in temporary directories left behind
by the test cases, thus causing occasional spurious failures.
* syntax-checks.mk (ams): Ignore 'Makefile.am' files in the
temporary test directories.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
xdefs = $(srcdir)/defs $(srcdir)/defs-static.in
-ams := $(shell find $(srcdir) -name '*.am')
+ams := $(shell find $(srcdir) '(' -name '*.dir' -prune ')' -a -name '*.am')
# Some simple checks, and then ordinary check. These are only really
# guaranteed to work on my machine.