diff options
author | Max Kellermann <max@duempel.org> | 2009-01-25 18:24:42 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-25 18:24:42 +0100 |
commit | 7960ad32fcfb1e17c24d3b26e53a1cdbc5ca0028 (patch) | |
tree | 8a3fd48034a40cb2151a7aed4516d53000a6371d /doc | |
parent | 936449c6225624102d0a6cb78f9bb4da84375d60 (diff) | |
download | mpd-7960ad32fcfb1e17c24d3b26e53a1cdbc5ca0028.tar.gz mpd-7960ad32fcfb1e17c24d3b26e53a1cdbc5ca0028.tar.xz mpd-7960ad32fcfb1e17c24d3b26e53a1cdbc5ca0028.zip |
doc: chunk the DocBook HTML output
Create a HTML chunk of each DocBook chapter. Use the UTF-8 character
set instead of docbook-xsl's ISO-Latin-1 default.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 6ace106c3..f59b2fe81 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,15 +1,19 @@ DOCBOOK_FILES = protocol.xml -DOCBOOK_HTML = $(patsubst %.xml,%.html,$(DOCBOOK_FILES)) +DOCBOOK_HTML = $(patsubst %.xml,%/index.html,$(DOCBOOK_FILES)) man_MANS = mpd.1 mpd.conf.5 doc_DATA = mpdconf.example EXTRA_DIST = $(man_MANS) $(DOCBOOK_FILES) mpdconf.example -MOSTLYCLEANFILES = $(DOCBOOK_HTML) - if HAVE_XMLTO -doc_DATA += $(DOCBOOK_HTML) +protocoldir = $(docdir)/protocol +protocol_DATA = $(wildcard protocol/*.html) + +$(DOCBOOK_HTML): %/index.html: %.xml + $(XMLTO) -o protocol --stringparam chunker.output.encoding=utf-8 html $< + +all-local: $(DOCBOOK_HTML) -$(DOCBOOK_HTML): %.html: %.xml - $(XMLTO) html-nochunks $< +clean-local: + rm -rf $(patsubst %.xml,%,$(DOCBOOK_FILES)) endif |