aboutsummaryrefslogtreecommitdiffstats
path: root/doc/Makefile.am
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-20 08:59:55 +0100
committerMax Kellermann <max@duempel.org>2008-11-20 08:59:55 +0100
commit90bfe65e54f45351219f48581a927ec52c6a9dd1 (patch)
treed466aa68951eeb3307e15bb0643567ee9c6dfac7 /doc/Makefile.am
parenta3d0e571cc839f861ec514b6b9cd1d8af2c1efa4 (diff)
downloadmpd-90bfe65e54f45351219f48581a927ec52c6a9dd1.tar.gz
mpd-90bfe65e54f45351219f48581a927ec52c6a9dd1.tar.xz
mpd-90bfe65e54f45351219f48581a927ec52c6a9dd1.zip
doc: process protocol.xml with xmlto
Generate and install protocol.html if xmlto is available.
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am14
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 9cba2f08a..3234ccb5f 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,3 +1,15 @@
+DOCBOOK_FILES = protocol.xml
+DOCBOOK_HTML = $(patsubst %.xml,%.html,$(DOCBOOK_FILES))
+
man_MANS = mpd.1 mpd.conf.5
-doc_DATA = COMMANDS mpdconf.example
+doc_DATA = mpdconf.example
EXTRA_DIST = $(man_MANS) $(doc_DATA)
+
+MOSTLYCLEANFILES = $(DOCBOOK_HTML)
+
+if HAVE_XMLTO
+doc_DATA += $(DOCBOOK_HTML)
+
+$(DOCBOOK_HTML): %.html: %.xml
+ $(XMLTO) html-nochunks $<
+endif