diff --git a/coreapi/help/Makefile.am b/coreapi/help/Makefile.am index d9320afd3..9d35b40a4 100644 --- a/coreapi/help/Makefile.am +++ b/coreapi/help/Makefile.am @@ -10,6 +10,7 @@ if HAVE_DOXYGEN # docdir & pkgdocdir are not always defined by automake pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION) doc_htmldir=$(pkgdocdir)/html +doc_xmldir=$(pkgdocdir)/xml doc_html_DATA = $(top_builddir)/coreapi/help/doc/html/html.tar @@ -20,11 +21,21 @@ $(top_builddir)/coreapi/help/doc/html/index.html: $(SOURCES) Doxyfile Makefile.a rm -rf doc $(DOXYGEN) Doxyfile +doc_xml_DATA = $(top_builddir)/coreapi/help/doc/xml/xml.tar + +$(doc_xml_DATA): $(top_builddir)/coreapi/help/doc/xml/index.xml + cd $(top_builddir)/coreapi/help/doc/xml/ && tar cf xml.tar * + +$(top_builddir)/coreapi/help/doc/xml/index.xml: $(top_builddir)/coreapi/help/doc/html/index.html + + install-data-hook: cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar && rm -f html.tar + cd $(DESTDIR)$(doc_xmldir) && tar xf xml.tar && rm -f xml.tar uninstall-hook: cd $(DESTDIR)$(doc_htmldir) && rm -f * + cd $(DESTDIR)$(doc_xmldir) && rm -f * endif