doc: generate API documentation with doxygen

When configured with --enable-documentation, use doxygen.
This commit is contained in:
Max Kellermann 2009-02-13 09:11:22 +01:00
parent df9245c2aa
commit ef64449cb6
4 changed files with 1436 additions and 1 deletions

2
.gitignore vendored
View File

@ -36,3 +36,5 @@ tags
*~
.stgit*
doc/protocol.html
doc/protocol
doc/api

View File

@ -1077,6 +1077,13 @@ if test x$enable_documentation = xyes; then
fi
AC_SUBST(XMLTO)
AC_PATH_PROG(DOXYGEN, doxygen)
if test x$DOXYGEN = x; then
AC_MSG_ERROR([doxygen not found])
fi
AC_SUBST(DOXYGEN)
fi
AM_CONDITIONAL(ENABLE_DOCUMENTATION, test x$enable_documentation = xyes)

View File

@ -12,8 +12,17 @@ protocol_DATA = $(wildcard protocol/*.html)
$(DOCBOOK_HTML): %/index.html: %.xml
$(XMLTO) -o protocol --stringparam chunker.output.encoding=utf-8 html $<
all-local: $(DOCBOOK_HTML)
api/html/index.html: doxygen.conf
$(DOXYGEN) $<
all-local: $(DOCBOOK_HTML) api/html/index.html
clean-local:
rm -rf $(patsubst %.xml,%,$(DOCBOOK_FILES))
rm -rf api
install-data-local: api/html/index.html
$(mkinstalldirs) $(docdir)/api/html
$(INSTALL_DATA) -c -m 644 api/html/*.html api/html/*.css api/html/*.png api/html/*.gif $(docdir)/api/html
endif

1417
doc/doxygen.conf Normal file

File diff suppressed because it is too large Load Diff