From d0f9bd600c10615d9dbb6701001d491122a29aef Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 8 Apr 2017 19:48:05 +0200 Subject: Add minimal doxygen documentation for stream + datagram modules We should have doxygen documentation for all libosmo-* APIs. libosmo-netif is currently devoid of any API docs. Let's start with the stream and datagram socket related functions. Change-Id: I589a5e60d9df2b8a65fbaf68f80e3ae0039d8c2a --- Makefile.am | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index a78c523..9b1c0f1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,3 +13,28 @@ $(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 + +$(html_DATA): $(top_builddir)/doc/html/index.html + cd $(top_builddir)/doc && tar cf html.tar html + +$(top_builddir)/doc/html/index.html: $(SOURCES) Doxyfile + @rm -rf doc + mkdir -p doc + $(DOXYGEN) Doxyfile + +install-data-hook: + cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar + +uninstall-hook: + rm -rf $(DESTDIR)$(htmldir) + +DX_CLEAN = doc/html/search/* doc/{html,latex}/* doc/html.tar doc/doxygen_sqlite3.db doc/*.tag + +endif + +MOSTLYCLEANFILES = $(DX_CLEAN) -- cgit v1.2.3