summaryrefslogtreecommitdiff
path: root/qpid/cpp/docs/api/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp/docs/api/Makefile.am')
-rw-r--r--qpid/cpp/docs/api/Makefile.am37
1 files changed, 23 insertions, 14 deletions
diff --git a/qpid/cpp/docs/api/Makefile.am b/qpid/cpp/docs/api/Makefile.am
index a02e7dd084..2b05622d2d 100644
--- a/qpid/cpp/docs/api/Makefile.am
+++ b/qpid/cpp/docs/api/Makefile.am
@@ -1,21 +1,30 @@
-html: doxygen.tstamp
+#
+# Run doxygen to generate HTML doc.
+# Generate dependency files so its rebuilt only when needed.
+#
+
+EXTRA_DIST = html user.doxygen
dist-hook: html
-EXTRA_DIST = \
- html \
- user.doxygen
+html: doxygen.mk
+ make -f doxygen.mk $@
+
+html-dev: doxygen.mk
+ make -f doxygen.mk $@
+
+doxygen.mk: doxygen.deps
-SOURCES = \
- $(wildcard $(top_srcdir)/gen/*.h) \
- $(wildcard $(top_srcdir)/lib/common/*.h) \
- $(wildcard $(top_srcdir)/lib/common/sys/*.h) \
- $(wildcard $(top_srcdir)/lib/common/framing/*.h) \
- $(wildcard $(top_srcdir)/lib/client/*.h)
+doxygen.deps: force
+ echo "html: \\" >> $@-t
+ find $(top_srcdir) -name "*.h" -exec echo " {} \\" \; >> $@-t
+ echo >> $@-t
+ echo "html-dev: html\\" >> $@-t
+ find $(top_srcdir) -name "*.cpp" -exec echo " {} \\" \; >> $@-t
+ echo >> $@-t
+ mv $@-t $@
-doxygen.tstamp: user.doxygen $(SOURCES)
- doxygen $(srcdir)/user.doxygen
- touch $@
+force:
clean-local:
- rm -rf docs.tstamp html man latex doxygen.tstamp xml
+ rm -rf html html-dev *.deps