From 10e8dcc0e6465224903d9a457de871fcd0e9ce21 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Fri, 12 Aug 2022 16:03:25 +1000 Subject: pdf: Set TEXINPUTS to the tex source path --- common/waf.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'common/waf.py') 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), -- cgit v1.2.3