On Dec 22, 2014, at 2:42 AM, Gilles Gouaillardet <gilles.gouaillar...@iferc.org> wrote:
> Jeff and all, > > i just found "by accident" that make can require autotools. > > for example: > > from (generated) ompi/include/Makefile : > $(srcdir)/mpi.h.in: $(am__configure_deps) > ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) > rm -f stamp-h2 > touch $@ > > and $(am__configure_deps) is a bunch (all?) of .m4 files. > > from a pragmatic point of view, it means that if update a m4 file, run > autogen.pl and configure, > then, the first invokation of make will run $(AUTOHEADER) Gilles, Have you actually experienced this exact behavior? The sequence you mention above shouldn't cause autoheader to be invoked by make. Running autogen.pl will invoke autoheader after the m4 files were touched, so the mpi.h.in file will be newer than its m4 dependencies, which should mean that this make rule won't be executed. -Dave