134f90d55Smrg# 234f90d55Smrg# Generate output formats for a single DocBook/XML with/without chapters 334f90d55Smrg# 434f90d55Smrg# Variables set by the calling Makefile: 534f90d55Smrg# noinst_DATA: developers docs are not installed 634f90d55Smrg# docbook: the main DocBook/XML file, no chapters, appendix or image files 734f90d55Smrg# chapters: all files pulled in by an XInclude statement and images. 834f90d55Smrg# 934f90d55Smrg 1034f90d55Smrg# 1134f90d55Smrg# This makefile is intended for Developers Documentation and is not installed. 1234f90d55Smrg# Do not use for Users docs or Specs which need to be installed and require olink support 1334f90d55Smrg# Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393 1434f90d55Smrg# for an explanation on documents classification. 1534f90d55Smrg# 1634f90d55Smrg 1734f90d55Smrg# Developers documnetation is not installed 1834f90d55Smrgnoinst_DATA = 1934f90d55Smrg 2034f90d55Smrg# DocBook/XML file with chapters, appendix and images it includes 2134f90d55Smrgdist_noinst_DATA = $(docbook) $(chapters) 2234f90d55Smrg 2334f90d55Smrgif HAVE_STYLESHEETS 2434f90d55Smrg 2534f90d55SmrgXMLTO_HTML_FLAGS = \ 2634f90d55Smrg --searchpath "$(XORG_SGML_PATH)/X11" \ 2734f90d55Smrg --searchpath "$(abs_top_builddir)" \ 2834f90d55Smrg -x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl 2934f90d55Smrg 3034f90d55Smrgnoinst_DATA += $(docbook:.xml=.html) 3134f90d55Smrg%.html: %.xml $(chapters) 3234f90d55Smrg $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $< 3334f90d55Smrg 3434f90d55Smrgif HAVE_XMLTO_TEXT 3534f90d55Smrgnoinst_DATA += $(docbook:.xml=.txt) 3634f90d55Smrg%.txt: %.xml $(chapters) 3734f90d55Smrg $(AM_V_GEN)$(XMLTO) $(XMLTO_HTML_FLAGS) txt $< 3834f90d55Smrgendif HAVE_XMLTO_TEXT 3934f90d55Smrg 4034f90d55Smrgif HAVE_FOP 4134f90d55SmrgXMLTO_FO_FLAGS = \ 4234f90d55Smrg --searchpath "$(XORG_SGML_PATH)/X11" \ 4334f90d55Smrg --searchpath "$(abs_top_builddir)" \ 4434f90d55Smrg --stringparam img.src.path=$(abs_builddir)/ \ 4534f90d55Smrg -x $(STYLESHEET_SRCDIR)/xorg-fo.xsl 4634f90d55Smrg 4734f90d55Smrgnoinst_DATA += $(docbook:.xml=.pdf) $(docbook:.xml=.ps) 4834f90d55Smrg%.pdf: %.xml $(chapters) 4934f90d55Smrg $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $< 5034f90d55Smrg%.ps: %.xml $(chapters) 5134f90d55Smrg $(AM_V_GEN)$(XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $< 5234f90d55Smrgendif HAVE_FOP 5334f90d55Smrgendif HAVE_STYLESHEETS 5434f90d55Smrg 5534f90d55SmrgCLEANFILES = $(noinst_DATA) 56