[EMAIL PROTECTED] (Karl Berry) writes:

> Hi Simon,
>
>     Isn't there a better way to tell makeinfo+texi2dvi etc, via automake,
>     where it should search for *.texi files?
>
> Well, one probably-too-simple thing would be to use a make variable to
> factor out the common directories:
>
> my_texinfo_includes = -I $(top_srcdir)/examples
> TEXI2DVI = texi2dvi $(my_texinfo_includes)
> AM_MAKEINFOFLAGS = -I $(top_builddir)/doc $(my_texinfo_includes)

I just noticed that gendocs.sh also need the -I's, for makeinfo and
texi2dvi.  What do you think about a new keyword to set the path in
the *.texi file?  I.e.:

@addinclude texi/
@addinclude @value{FOO}

Then makeinfo and texi2dvi -- and possibly other programs? -- could
add those directories to the -I path.

Or an environment variable?  TEXIINCLUDEPATH?

> I'm not sure why the -I $(top_builddir)/doc is needed, and needed only
> for makeinfo?  I don't set AM_MAKEINFOFLAGS myself in my Makefile.am's ...

I forgot why it was needed.  It should probably be present for both,
or removed.  It may be related to objdir != srcdir building, and maybe
only the info manual had to be built then, I haven't tried 'make dist'
in an objdir != srcdir build.  OTOH, I think 'make distcheck' do that,
and it passes.

/Simon


_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-texinfo

Reply via email to