From 793cf8a259540bbb063bf0eb4cfde3e26d3ccfd3 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 12 Oct 2017 16:29:14 +0200 Subject: Add doxygen docs Make sure doxygen generates library documentation by default (can be disabled at compile time). Change-Id: I2bf7438bcdde19dc88b9bc14c8ad9c8f49099f8a Related: OS#2572 --- Makefile.am | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index e2c5277..3b9f6ee 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,3 +15,30 @@ $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@ dist-hook: echo $(VERSION) > $(distdir)/.tarball-version + + +if HAVE_DOXYGEN + +html_DATA = $(top_builddir)/doc/html.tar + +doc: $(html_DATA) + +$(html_DATA): $(top_builddir)/doc/sccp/html/index.html + cd $(top_builddir)/doc && tar cf html.tar */html + +$(top_builddir)/doc/sccp/html/index.html: $(SOURCES) Doxyfile + @rm -rf doc/sccp + mkdir -p doc/sccp + $(DOXYGEN) Doxyfile + +install-data-hook: + cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar + +uninstall-hook: + cd $(DESTDIR)$(htmldir) && rm -rf sccp + +DX_CLEAN = doc/sccp/html/search/* doc/sccp/{html,latex}/* doc/html.tar doc/doxygen_sqlite3.db doc/sccp/doxygen_sqlite3.db doc/*.tag + +endif + +MOSTLYCLEANFILES = $(DX_CLEAN) -- cgit v1.2.3