Add doxygen documentation to the build system

This commit is contained in:
Ryan McLean 2016-10-31 03:53:58 +00:00 committed by Jef Driesen
parent 61f3031364
commit 39aa859d19
5 changed files with 2460 additions and 0 deletions

5
.gitignore vendored
View File

@ -32,6 +32,11 @@ Makefile.in
/stamp-h1 /stamp-h1
/tags /tags
/doc/doxygen
/doc/doxygen.cfg
/doc/html/
/doc/latex/
/examples/aladin /examples/aladin
/examples/atom2 /examples/atom2
/examples/d9 /examples/d9

View File

@ -4,6 +4,10 @@ if ENABLE_EXAMPLES
SUBDIRS += examples SUBDIRS += examples
endif endif
if ENABLE_DOC
SUBDIRS += doc
endif
AM_MAKEFLAGS = -s AM_MAKEFLAGS = -s
ACLOCAL_AMFLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4

View File

@ -53,9 +53,19 @@ AC_ARG_ENABLE([examples],
[], [enable_examples=yes]) [], [enable_examples=yes])
AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"]) AM_CONDITIONAL([ENABLE_EXAMPLES], [test "x$enable_examples" = "xyes"])
# Documentation.
AC_ARG_ENABLE([doc],
[AS_HELP_STRING([--enable-doc=@<:@yes/no@:>@],
[Build documentation @<:@default=yes@:>@])],
[], [enable_doc=yes])
AM_CONDITIONAL([ENABLE_DOC], [test "x$enable_doc" = "xyes"])
# Checks for programs. # Checks for programs.
AC_PROG_CC AC_PROG_CC
AC_PROG_CC_C99 AC_PROG_CC_C99
AC_CHECK_PROGS([DOXYGEN], [doxygen])
AM_CONDITIONAL([HAVE_DOXYGEN],[test -n "$DOXYGEN"])
# Enable automake silent build rules. # Enable automake silent build rules.
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
@ -159,6 +169,8 @@ AC_CONFIG_FILES([
include/libdivecomputer/version.h include/libdivecomputer/version.h
src/Makefile src/Makefile
src/libdivecomputer.rc src/libdivecomputer.rc
doc/Makefile
doc/doxygen.cfg
examples/Makefile examples/Makefile
]) ])
AC_OUTPUT AC_OUTPUT

12
doc/Makefile.am Normal file
View File

@ -0,0 +1,12 @@
doxygen: doxygen.cfg
if HAVE_DOXYGEN
$(DOXYGEN) $(DOXYFLAGS) $<
touch $@
endif
all-local: doxygen
clean-local:
-$(RM) -rf html latex
CLEANFILES = doxygen

2427
doc/doxygen.cfg.in Normal file

File diff suppressed because it is too large Load Diff