Hello, please read
http://lists.gnu.org/archive/html/bug-make/2015-07/msg00054.html http://lists.gnu.org/archive/html/bug-make/2015-07/msg00055.html
and tell me, if this is make or Automake problem.If it is Automake problem, were you aware of it and do you have an idea how to solve it?
The concrete case is building Cyrus Imapd, which uses a single Makefile for every .c file, library, executable (except the perl stuff).
Thanks Dilian