Adding doxygen setup and info for the testing framework.
Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
diff --git a/Makefile.am b/Makefile.am
index e8b76c2..a3590c0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1058,6 +1058,7 @@
clean-local:
-rm -rf logs
+ -rm -rf $(DOCDIRS)
# To remove when automake 1.11 support is dropped
export abs_builddir
@@ -1352,6 +1353,27 @@
CLEANFILES += $(man_MANS)
+if ENABLE_DEVDOCS
+DOXYGEN_INDICES = docs/developer/html/index.html docs/tools/html/index.html
+
+docs/developer/html/index.html: doc/doxygen/tooldev.doxygen | docs/developer
+ cd doc/doxygen && $(DOXYGEN) tooldev.doxygen
+
+docs/tools/html/index.html: doc/doxygen/tools.doxygen | docs/tools
+ cd doc/doxygen && $(DOXYGEN) tools.doxygen
+endif
+
+DOCDIRS = \
+ docs/developer \
+ docs/tools
+
+$(DOCDIRS):
+ $(MKDIR_P) $@
+
+.PHONY: doc $(DOXYGEN_INDICES)
+
+doc: $(DOXYGEN_INDICES)
+
protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@