install xml documentation generated by doxygen

This commit is contained in:
Simon Morlat 2013-10-02 17:26:24 +02:00
parent 2f17787d93
commit 532f40dae9

View file

@ -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