-include ../../releasetools/Variables.mk
+include $(DOCBOOK_SVN)/releasetools/Variables.mk
XJPARSEFLAGS= -E 0 -w
FO_BUILDER=saxon
$(DOCBOOK_SVN)/buildtools/xslt -$(FO_BUILDER) $< $(REFERENCEFOXSL) > $@
reference.pdf: reference.fo
+ifeq ($(PDF_MAKER),dblatex)
+ -$(DBLATEX) $(DBLATEXFLAGS) \
+ -p $(DBX_STYLE) \
+ -o $@ \
+ $<
+else
+ifeq ($(PDF_MAKER),xep)
$(XEP) $(XEPFLAGS) $<
+endif
+endif
reference.txt.html: ../docsrc/reference.xml.included $(REFERENCETXTXSL) $(DOC_SOURCE_XML_FILES)
$(XSLT) $< $(REFERENCETXTXSL) > $@
all: saxon65.jar xalan27.jar xslt.py docbook.py README.LIBXSLT
-saxon65.jar: ../../xsl-saxon/saxon65.jar
+saxon65.jar: $(DOCBOOK_SVN)/xsl-saxon/saxon65.jar
cp -p $^ $@
-xalan27.jar: ../../xsl-xalan/xalan27.jar
+xalan27.jar: $(DOCBOOK_SVN)/xsl-xalan/xalan27.jar
cp -p $^ $@
-../../xsl-saxon/saxon65.jar: $(wildcard ../../xsl-saxon/src/com/nwalsh/saxon/*.java)
+$(DOCBOOK_SVN)/xsl-saxon/saxon65.jar: $(wildcard ../../xsl-saxon/src/com/nwalsh/saxon/*.java)
$(MAKE) -C $(dir $@)
-../../xsl-xalan/xalan27.jar: $(wildcard ../../xsl-xalan/src/com/nwalsh/xalan/*.java)
+$(DOCBOOK_SVN)/xsl-xalan/xalan27.jar: $(wildcard ../../xsl-xalan/src/com/nwalsh/xalan/*.java)
$(MAKE) -C $(dir $@)
-xslt.py: ../../xsl-libxslt/python/xslt.py
+xslt.py: $(DOCBOOK_SVN)/xsl-libxslt/python/xslt.py
cp -p $^ $@
-docbook.py: ../../xsl-libxslt/python/docbook.py
+docbook.py: $(DOCBOOK_SVN)/xsl-libxslt/python/docbook.py
cp -p $^ $@
-README.LIBXSLT: ../../xsl-libxslt/python/README.LIBXSLT
+README.LIBXSLT: $(DOCBOOK_SVN)/xsl-libxslt/python/README.LIBXSLT
cp -p $^ $@
clean:
-include ../../buildtools/Makefile.incl
+include $(DOCBOOK_SVN)/buildtools/Makefile.incl
all: xsl-files profile-docbook.xsl profile-chunk.xsl profile-onechunk.xsl