1# docs 2# 3include $(top_srcdir)/src/xmlpull/sources.mk 4include $(top_srcdir)/src/wsdlparser/sources.mk 5include $(top_srcdir)/src/schemaparser/sources.mk 6include $(top_srcdir)/src/tools/sources.mk 7 8MAINTAINERCLEANFILES = Makefile.in 9 10docdir = @docdir@ 11 12html_tarname = @PACKAGE_TARNAME@-doc-@PACKAGE_VERSION@ 13 14noinst_DATA = doxy.conf 15EXTRA_DIST = $(noinst_DATA) 16 17# Targets 18all-local: html-local 19 20html-local: html/index.html 21 22html/index.html: doxy.conf \ 23 $(xmlpull_h_sources) $(xmlpull_cc_sources) \ 24 $(wsdl_h_sources) $(wsdl_cc_sources) \ 25 $(schema_h_sources) $(schema_cc_sources) \ 26 $(wsdltool_cc_sources) $(schematool_cc_sources) 27 doxygen $< 28 29dist-html: html-local 30 cp -a $(top_builddir)/docs/html $(top_builddir)/$(html_tarname) 31 tar chof - $(top_builddir)/$(html_tarname) | \ 32 gzip --best -c > $(top_builddir)/$(html_tarname).tar.gz 33 tar chof - $(top_builddir)/$(html_tarname) | \ 34 bzip2 -9 -c > $(top_builddir)/$(html_tarname).tar.bz2 35 rm -rf $(top_builddir)/$(html_tarname) 36 37install-data-local: html-local 38 $(mkinstalldirs) $(DESTDIR)$(docdir) 39 if test -d html; then \ 40 $(mkinstalldirs) $(DESTDIR)$(docdir)/html; \ 41 for f in html/*; do \ 42 $(INSTALL_DATA) $$f $(DESTDIR)$(docdir)/html; \ 43 done \ 44 fi 45 46uninstall-local: 47 rm -rf $(DESTDIR)$(docdir) 48 49clean-local: 50 rm -rf html *.log *.tag 51 52