XSLTPROC=xsltproc --stringparam l10n.gentext.language nl JADE=jade XMLDECL=$(shell locate declaration/xml.dcl | head -1) DOCBOOK_HTML=$(shell locate /html/docbook.xsl | head -1) DOCBOOK_XHTML=$(shell locate /xhtml/docbook.xsl | head -1) DOCBOOK_DSSSL=$(shell locate print/docbook.dsl | head -1 | sed "s/\\//\\\\\\//g") all: static.html static.xhtml static.pdf static.pdf: static.dsl static.xml $(JADE) -d static.dsl -t tex -o static.tex $(XMLDECL) static.xml jadetex static.tex && dvips -o static.ps static.dvi && ps2pdf static.ps static.html: static.xml $(XSLTPROC) $(DOCBOOK_HTML) $< > static.html static.xhtml: static.xml $(XSLTPROC) $(DOCBOOK_XHTML) $< > static.xhtml static.dsl: static.dsl.tmpl cat static.dsl.tmpl | sed "s/FILLMEIN/$(DOCBOOK_DSSSL)/g" > static.dsl