# The doc_sources variable contains one or more DocBook/XML source file.
# The generated documents will be installed in $(docdir),
# The DocBook/XML files will always be included in the tarball

dist_doc_DATA = $(doc_sources)

if HAVE_XMLTO
doc_DATA = $(doc_sources:.xml=.html)

if HAVE_FOP
doc_DATA += $(doc_sources:.xml=.pdf)
endif

if HAVE_XMLTO_TEXT
doc_DATA += $(doc_sources:.xml=.txt)
endif

CLEANFILES = $(doc_DATA)
include $(top_srcdir)/doc/xml/xmlrules.in

endif HAVE_XMLTO