summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-10-12 16:29:14 +0200
committerMax <msuraev@sysmocom.de>2017-10-18 10:42:52 +0200
commit793cf8a259540bbb063bf0eb4cfde3e26d3ccfd3 (patch)
tree38216dc09f952db96bab92716cc284579ce1ae07 /Makefile.am
parentd966b0fd060d72e07a6da548da5989abb5789a6f (diff)
Add doxygen docs
Make sure doxygen generates library documentation by default (can be disabled at compile time). Change-Id: I2bf7438bcdde19dc88b9bc14c8ad9c8f49099f8a Related: OS#2572
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am27
1 files changed, 27 insertions, 0 deletions
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)