doc: Ability to debug documentation generation

This commit is contained in:
Sunil Mohan Adapa authored and James Valleroy committed 2016-05-21 14:24:31 -04:00
1 parent 17e96c624c
commit 77f08675a4
1 file changed
+12 -1
+12 -1
View File
@@ -20,6 +20,17 @@ MANUAL_URL="https://wiki.debian.org/FreedomBox/Manual?action=show&mimetype=text%
OUTPUTS=freedombox-manual.pdf freedombox-manual.html freedombox-manual.part.html plinth.1
# In order to debug various problems with the documents especially
# intermediate LaTeX state, run make as follows:
#
# $ make DEBUG=true
# or
# $ make DEBUG=true <target>
#
XMLTO_DEBUG_FLAGS=
ifneq ($(DEBUG),)
XMLTO_DEBUG_FLAGS=--noclean -p '--debug'
endif
all: $(OUTPUTS)
@@ -47,7 +58,7 @@ fetch:
%.pdf: %.xml
xmlto --with-dblatex pdf $<
xmlto $(XMLTO_DEBUG_FLAGS) --with-dblatex pdf $<
%.part.html: %.html