135c4bbdfSmrg#
235c4bbdfSmrg# Generate output formats for a single DocBook/XML with/without chapters
335c4bbdfSmrg#
435c4bbdfSmrg# Variables set by the calling Makefile:
535c4bbdfSmrg# noinst_DATA: developers docs are not installed
635c4bbdfSmrg# docbook:  the main DocBook/XML file, no chapters, appendix or image files
735c4bbdfSmrg# chapters: all files pulled in by an XInclude statement and images.
835c4bbdfSmrg#
935c4bbdfSmrg
1035c4bbdfSmrg#
1135c4bbdfSmrg# This makefile is intended for Developers Documentation and is not installed.
1235c4bbdfSmrg# Do not use for Users docs or Specs which need to be installed and require olink support
1335c4bbdfSmrg# Refer to http://www.x.org/releases/X11R7.6/doc/xorg-docs/ReleaseNotes.html#id2584393
1435c4bbdfSmrg# for an explanation on documents classification.
1535c4bbdfSmrg#
1635c4bbdfSmrg
1735c4bbdfSmrg# Developers documnetation is not installed
1835c4bbdfSmrgnoinst_DATA =
1935c4bbdfSmrg
2035c4bbdfSmrg# DocBook/XML file with chapters, appendix and images it includes
2135c4bbdfSmrgdist_noinst_DATA = $(docbook) $(chapters)
2235c4bbdfSmrg
2335c4bbdfSmrgFILTER_XMLTO=$(SHELL) $(top_srcdir)/doc/filter-xmlto.sh $(XMLTO)
2435c4bbdfSmrg
2535c4bbdfSmrgif HAVE_STYLESHEETS
2635c4bbdfSmrg
2735c4bbdfSmrgXMLTO_HTML_FLAGS = 					\
2835c4bbdfSmrg	--searchpath "$(XORG_SGML_PATH)/X11" 		\
2935c4bbdfSmrg	--searchpath "$(abs_top_builddir)"		\
3035c4bbdfSmrg	-x $(STYLESHEET_SRCDIR)/xorg-xhtml.xsl
3135c4bbdfSmrg
3235c4bbdfSmrgnoinst_DATA += $(docbook:.xml=.html)
3335c4bbdfSmrg%.html: %.xml  $(chapters)
3435c4bbdfSmrg	$(AM_V_GEN)$(FILTER_XMLTO) $(XMLTO_HTML_FLAGS) xhtml-nochunks $<
3535c4bbdfSmrg
3635c4bbdfSmrgif HAVE_XMLTO_TEXT
3735c4bbdfSmrgnoinst_DATA += $(docbook:.xml=.txt)
3835c4bbdfSmrg%.txt: %.xml $(chapters)
3935c4bbdfSmrg	$(AM_V_GEN)$(FILTER_XMLTO) $(XMLTO_HTML_FLAGS) txt $<
4035c4bbdfSmrgendif HAVE_XMLTO_TEXT
4135c4bbdfSmrg
4235c4bbdfSmrgif HAVE_FOP
4335c4bbdfSmrgXMLTO_FO_FLAGS = 					\
4435c4bbdfSmrg	--searchpath "$(XORG_SGML_PATH)/X11" 		\
4535c4bbdfSmrg	--searchpath "$(abs_top_builddir)"		\
4635c4bbdfSmrg	--stringparam img.src.path=$(abs_builddir)/	\
4735c4bbdfSmrg	-x $(STYLESHEET_SRCDIR)/xorg-fo.xsl
4835c4bbdfSmrg
4935c4bbdfSmrgnoinst_DATA += $(docbook:.xml=.pdf) $(docbook:.xml=.ps)
5035c4bbdfSmrg%.pdf: %.xml $(chapters)
5135c4bbdfSmrg	$(AM_V_GEN)$(FILTER_XMLTO) $(XMLTO_FO_FLAGS) --with-fop pdf $<
5235c4bbdfSmrg%.ps: %.xml $(chapters)
5335c4bbdfSmrg	$(AM_V_GEN)$(FILTER_XMLTO) $(XMLTO_FO_FLAGS) --with-fop ps $<
5435c4bbdfSmrgendif HAVE_FOP
5535c4bbdfSmrgendif HAVE_STYLESHEETS
5635c4bbdfSmrg
5735c4bbdfSmrgCLEANFILES = $(noinst_DATA)
58