Re: docbook pdf generation
On Sun, Jan 23, 2005 at 01:27:12PM +0100,
Wichert Akkerman <wichert@wiggy.net> wrote
a message of 20 lines which said:
> If anyone feels like trying this themselves: the input I use is
> available at http://www.wiggy.net/tmp/manual.tar.gz .
It works for me on a sarge machine. I send you the PDF in private. My
Makefile includes:
PRINT_STYLESHEET=${HOME}/lib/print.dsl
XML_DECL=/usr/share/sgml/declaration/xml.dcl
MAX_TEX_RECURSION=4
%.tex: %.db ${PRINT_STYLESHEET}
jade -t tex -V tex-backend \
-d ${PRINT_STYLESHEET} \
${XML_DECL} $<
%.pdf: %.tex
# Trick from Adam Di Carlo <adam@onshore.com> to recurse jadetex
# "just enough".
-cp -pf prior.aux pprior.aux
-cp -pf $(shell basename $< .tex).aux prior.aux
pdfjadetex $<
if ! cmp $(shell basename $< .tex).aux prior.aux && \
! cmp $(shell basename $< .tex).aux pprior.aux && \
expr $(MAKELEVEL) '<' $(MAX_TEX_RECURSION); then \
rm -f $@ ;\
$(MAKE) $@ ;\
fi
rm -f prior.aux pprior.aux
Reply to: