doc: process protocol.xml with xmlto
Generate and install protocol.html if xmlto is available.
This commit is contained in:
parent
a3d0e571cc
commit
90bfe65e54
16
configure.ac
16
configure.ac
@ -852,6 +852,22 @@ fi
|
|||||||
AM_CONDITIONAL(HAVE_ZEROCONF, test x$with_zeroconf != xno)
|
AM_CONDITIONAL(HAVE_ZEROCONF, test x$with_zeroconf != xno)
|
||||||
|
|
||||||
|
|
||||||
|
dnl
|
||||||
|
dnl Documentation
|
||||||
|
dnl
|
||||||
|
|
||||||
|
AC_MSG_CHECKING([for xmlto (DocBook processing)])
|
||||||
|
AC_PATH_PROG(XMLTO, xmlto)
|
||||||
|
if test x$XMLTO != x; then
|
||||||
|
AC_SUBST(XMLTO)
|
||||||
|
AC_MSG_RESULT($XMLTO)
|
||||||
|
else
|
||||||
|
AC_MSG_RESULT(no)
|
||||||
|
fi
|
||||||
|
|
||||||
|
AM_CONDITIONAL(HAVE_XMLTO, test x$XMLTO != x)
|
||||||
|
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl build options
|
dnl build options
|
||||||
dnl
|
dnl
|
||||||
|
@ -1,3 +1,15 @@
|
|||||||
|
DOCBOOK_FILES = protocol.xml
|
||||||
|
DOCBOOK_HTML = $(patsubst %.xml,%.html,$(DOCBOOK_FILES))
|
||||||
|
|
||||||
man_MANS = mpd.1 mpd.conf.5
|
man_MANS = mpd.1 mpd.conf.5
|
||||||
doc_DATA = COMMANDS mpdconf.example
|
doc_DATA = mpdconf.example
|
||||||
EXTRA_DIST = $(man_MANS) $(doc_DATA)
|
EXTRA_DIST = $(man_MANS) $(doc_DATA)
|
||||||
|
|
||||||
|
MOSTLYCLEANFILES = $(DOCBOOK_HTML)
|
||||||
|
|
||||||
|
if HAVE_XMLTO
|
||||||
|
doc_DATA += $(DOCBOOK_HTML)
|
||||||
|
|
||||||
|
$(DOCBOOK_HTML): %.html: %.xml
|
||||||
|
$(XMLTO) html-nochunks $<
|
||||||
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user