diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2010-09-08 22:38:22 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2010-10-05 11:46:00 +0100 |
commit | ee17175118028ad3b2c39be2fd58a21406325b91 (patch) | |
tree | 054b81b53177c6d996e1aead85d7a919849e55fc /doc | |
parent | e8c5d7525cb8515d62a0ca791c765b2316ebff98 (diff) |
Integrate building HTML-ified manpages with the build system
Diffstat (limited to 'doc')
-rw-r--r-- | doc/.gitignore | 1 | ||||
-rw-r--r-- | doc/Makefile.am | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/doc/.gitignore b/doc/.gitignore index 23125734..8a38ca33 100644 --- a/doc/.gitignore +++ b/doc/.gitignore @@ -2,6 +2,7 @@ .libs Makefile Makefile.in +*.1.html *.lo *.la *.o diff --git a/doc/Makefile.am b/doc/Makefile.am index 445d2fd6..ec370843 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -8,6 +8,14 @@ man_MANS = \ MAN_IN_FILES = dbus-daemon.1.in +MAN_HTML_FILES = \ + dbus-cleanup-sockets.1.html \ + dbus-daemon.1.html \ + dbus-launch.1.html \ + dbus-monitor.1.html \ + dbus-send.1.html \ + dbus-uuidgen.1.html + EXTRA_DIST= \ busconfig.dtd \ diagram.png \ @@ -58,8 +66,16 @@ $(DOXYGEN_HTML_INDEX): $(wildcard $(top_srcdir)/dbus/*.[ch]) $(AM_V_GEN)cd $(top_builddir) && doxygen Doxyfile endif +if DBUS_HAVE_MAN2HTML +all-local:: $(MAN_HTML_FILES) + +%.1.html: %.1 + $(AM_V_GEN)( $(MAN2HTML) $< > $@.tmp && mv $@.tmp $@ ) +endif + clean-local: rm -rf api + rm -f *.1.html maintainer-clean-local: rm -f $(HTML_FILES) |