summaryrefslogtreecommitdiffstats
path: root/common/waf.py
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2022-08-12 16:03:25 +1000
committerChris Johns <chrisj@rtems.org>2022-08-12 16:03:46 +1000
commit10e8dcc0e6465224903d9a457de871fcd0e9ce21 (patch)
treeceb824582e1eaff2b27ced93428904b20f5084d8 /common/waf.py
parentuser/arm/beagle: Fix image path after section change (diff)
downloadrtems-docs-10e8dcc0e6465224903d9a457de871fcd0e9ce21.tar.bz2
pdf: Set TEXINPUTS to the tex source path
Diffstat (limited to 'common/waf.py')
-rw-r--r--common/waf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/waf.py b/common/waf.py
index fa9aecb..8584f88 100644
--- a/common/waf.py
+++ b/common/waf.py
@@ -340,12 +340,15 @@ def doc_pdf(ctx, source_dir, conf_dir, sources):
target = ctx.path.find_or_declare("%s/%s.tex" % (buildtype,
ctx.path.name))
)
+ env_latex = ctx.env.derive()
+ env_latex.TEXINPUTS = output_dir + ':'
ctx(
features = 'tex',
cwd = output_dir,
type = ctx.env.LATEX_CMD,
source = "%s/%s.tex" % (buildtype, ctx.path.name),
- prompt = 0
+ prompt = 0,
+ env = env_latex
)
ctx.install_files('${PREFIX}',
'%s/%s.pdf' % (buildtype, ctx.path.name),