diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-09-08 20:58:05 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-10-05 11:45:59 +0100 |
commit | d0dda86f333d234d9b7951c9a44cd20918adc4ad (patch) | |
tree | 3b40e6d9d6aa66ce3d6623b192342b4080b90963 /doc | |
parent | 92ac7113d3ed732feb40dbe923895017f0c9b0d1 (diff) |
Build Doxygen documentation for `make all`.
This depends on GNU Make for the wildcard dependency on all the source
files in dbus/. If anyone objects very strongly to this, I'd welcome
suggestions of a more portable way to do this.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Makefile.am | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index f76335f6..d6554e16 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -19,7 +19,7 @@ HTML_FILES= \ dbus-tutorial.html if DBUS_XML_DOCS_ENABLED -all-local: $(HTML_FILES) +all-local:: $(HTML_FILES) EXTRA_DIST += $(HTML_FILES) @@ -37,5 +37,18 @@ dbus-faq.html: dbus-faq.xml endif +if DBUS_DOXYGEN_DOCS_ENABLED +# Use the index as a proxy for the entire doc tree. +DOXYGEN_HTML_INDEX = api/html/index.html + +all-local:: $(DOXYGEN_HTML_INDEX) + +$(DOXYGEN_HTML_INDEX): $(wildcard $(top_srcdir)/dbus/*.[ch]) + $(AM_V_GEN)cd $(top_builddir) && doxygen Doxyfile +endif + +clean-local: + rm -rf api + maintainer-clean-local: rm -f $(HTML_FILES) |