From 532f40dae954e6f5b7e2ed8de4058ec1d673b244 Mon Sep 17 00:00:00 2001 From: Simon Morlat Date: Wed, 2 Oct 2013 17:26:24 +0200 Subject: [PATCH] install xml documentation generated by doxygen --- coreapi/help/Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) 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