[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: docs not building
From: |
John W. Eaton |
Subject: |
Re: docs not building |
Date: |
Wed, 08 Jul 2015 11:12:54 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 |
On 07/08/2015 08:34 AM, Mike Miller wrote:
I think in general once the current directory is changed you lose all
assumptions about the relationship between the source directory and
build directory so that's a downside to cd'ing.
I can also get your change to work for me by changing:
-$(AM_V_TEX)cd $(@D) && \
- TEXINPUTS="$(srcdir)/doc/refcard:$(TEXINPUTS):" \
+ TEXINPUTS="$(abs_srcdir)/doc/refcard:$(TEXINPUTS):" \
$(TEX) $(<F) $(AM_V_texidevnull)
so maybe that's a better workaround.
Ah, I think the reason it was working for me is that I was configuring with
~/src/octave/configure ...
so $srcdir was already absolute.
> We might want to do the same to the definition of TEXINPUTS elsewhere
> if the current directory is going to be changing, the other relative
> directories in that search path also become invalid.
Yes, so any place where the directory changes in a command, we need to
be careful about using $abs_srcdir vs. $srcdir.
jwe
Re: docs not building, Michael Godfrey, 2015/07/08