Generate the docbook description for the protocol from wayland.xml

Convert the wayland.xml protocol description to a docbook-compatible format
and hook it up to the publican sources.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2012-02-24 17:31:51 +10:00
parent c3d56a05c6
commit a678fd53e1
4 changed files with 122 additions and 2 deletions

View file

@ -17,9 +17,13 @@ publican_sources = \
$(srcdir)/en-US/images/x-architecture.png
Wayland: publican.cfg $(publican_sources)
Wayland: docbook-xsl publican.cfg $(publican_sources)
publican build --lang en-US --format html,pdf
# This must be run befor the publican run
docbook-xsl: $(top_srcdir)/protocol/wayland.xml protocol-to-docbook.xsl
$(AM_V_GEN)$(XSLTPROC) protocol-to-docbook.xsl $(top_srcdir)/protocol/wayland.xml > $(srcdir)/en-US/Protocol.xml
clean-local:
-rm -rf Wayland
@ -31,5 +35,6 @@ uninstall-local:
-rm -rf $(DESTDIR)$(docdir)/Wayland/*
-rmdir $(DESTDIR)$(docdir)/Wayland
EXTRA_DIST = $(publican_sources) publican.cfg
EXTRA_DIST = $(publican_sources) publican.cfg protocol-to-docbook.xsl
endif