On Wed, 2005-02-02 at 12:03 +0100, Alexandre Duret-Lutz wrote: > On Wed, Feb 02, 2005 at 11:46:28AM +0100, Ralf Corsepius wrote: > > MYDIR=$(top_builddir) > > include $(MYDIR)/aminclude.am > > This should have the same effect as > > include $(top_builddir)/aminclude.am OK, you're right, I didn't read carefully enough and mixed up $(top_srcdir) with $(top_builddir)
As far as $(top_srcdir) is concerned, it doesn't have the same effect. include $(top_srcdir)/aminclude.am inlines aminclude.am into Makefile.am include $(MYDIR)/aminclude.am cause automake to skip inlining and propagates include $(MYDIR)/aminclude.am into Makefile.in > which Tom is trying to avoid because it is not portable. "include" is non-portable, but otherwise (esp. if requiring gmake) it works. Ralf
