[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: -I not used by @verbatiminclude?
From: |
Simon Josefsson |
Subject: |
Re: -I not used by @verbatiminclude? |
Date: |
Sat, 08 Jul 2006 20:20:02 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) |
address@hidden (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