summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-06 15:06:01 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-08 05:12:58 -0400
commit98c094227c7738a65dfc5908b3397d7275e56ea1 (patch)
tree65f27374fa2a9c89142c48426615d42c8c2da475 /rules
parentca4791dba46b0c285763d3dd76a9c8a61b279a35 (diff)
downloadhaskell-98c094227c7738a65dfc5908b3397d7275e56ea1.tar.gz
users-guide: Run sphinx in nit-picky mode
This ensure that it blurts an error on missing references.
Diffstat (limited to 'rules')
-rw-r--r--rules/sphinx.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/sphinx.mk b/rules/sphinx.mk
index 43dff6177b..15e7152a12 100644
--- a/rules/sphinx.mk
+++ b/rules/sphinx.mk
@@ -40,7 +40,7 @@ html : html_$1
ifneq "$$(BINDIST)" "YES"
$1/build-html/$2/index.html: $1/conf.py $$($1_RST_SOURCES)
- $(SPHINXBUILD) -b html -d $1/.doctrees-html $(SPHINXOPTS) $1 $1/build-html/$2
+ $(SPHINXBUILD) -b html -d $1/.doctrees-html -w $1/.log -n $(SPHINXOPTS) $1 $1/build-html/$2
endif
@@ -62,7 +62,7 @@ ifneq "$$(BINDIST)" "YES"
# besides the last to fail.
$1/$2.pdf: $1/conf.py $$($1_RST_SOURCES)
- $(SPHINXBUILD) -b latex -d $1/.doctrees-pdf $(SPHINXOPTS) $1 $1/build-pdf/$2
+ $(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