doc: Ability to debug documentation generation

This commit is contained in:
Sunil Mohan Adapa 2016-05-18 18:27:08 +05:30 committed by James Valleroy
parent 17e96c624c
commit 77f08675a4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

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