summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-05-31 10:40:55 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-25 03:54:39 -0400
commit30e42652ed895c3ed086e7834be46f93ba1cc61b (patch)
tree4bd1f1e7d93e005d51d2b6c8bb033a2d88480072 /rules
parent7e6d3d09d983337df30d12e5aaa96bae9b81b324 (diff)
downloadhaskell-30e42652ed895c3ed086e7834be46f93ba1cc61b.tar.gz
make: Respect XELATEX variable
Previously we simply ignored the XELATEX variable when building PDF documentation.
Diffstat (limited to 'rules')
-rw-r--r--rules/sphinx.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/rules/sphinx.mk b/rules/sphinx.mk
index 15e7152a12..5291816d31 100644
--- a/rules/sphinx.mk
+++ b/rules/sphinx.mk
@@ -63,12 +63,12 @@ ifneq "$$(BINDIST)" "YES"
$1/$2.pdf: $1/conf.py $$($1_RST_SOURCES)
$(SPHINXBUILD) -b latex -d $1/.doctrees-pdf -w $1/.log -n $(SPHINXOPTS) $1 $1/build-pdf/$2
- cd $1/build-pdf/$2 ; xelatex -halt-on-error $2.tex 2>/dev/null >/dev/null || true
- cd $1/build-pdf/$2 ; xelatex -halt-on-error $2.tex 2>/dev/null >/dev/null || true
- cd $1/build-pdf/$2 ; xelatex -halt-on-error $2.tex 2>/dev/null >/dev/null || true
+ cd $1/build-pdf/$2 ; $(XELATEX) -halt-on-error $2.tex 2>/dev/null >/dev/null || true
+ cd $1/build-pdf/$2 ; $(XELATEX) -halt-on-error $2.tex 2>/dev/null >/dev/null || true
+ cd $1/build-pdf/$2 ; $(XELATEX) -halt-on-error $2.tex 2>/dev/null >/dev/null || true
cd $1/build-pdf/$2 ; makeindex $2.idx
- cd $1/build-pdf/$2 ; xelatex -halt-on-error $2.tex 2>/dev/null >/dev/null || true
- cd $1/build-pdf/$2 ; xelatex -halt-on-error $2.tex
+ cd $1/build-pdf/$2 ; $(XELATEX) -halt-on-error $2.tex 2>/dev/null >/dev/null || true
+ cd $1/build-pdf/$2 ; $(XELATEX) -halt-on-error $2.tex
cp $1/build-pdf/$2/$2.pdf $1/$2.pdf
endif