Add doxygen documentation to the build system
This commit is contained in:
parent
61f3031364
commit
39aa859d19
5
.gitignore
vendored
5
.gitignore
vendored
@ -32,6 +32,11 @@ Makefile.in
|
||||
/stamp-h1
|
||||
/tags
|
||||
|
||||
/doc/doxygen
|
||||
/doc/doxygen.cfg
|
||||
/doc/html/
|
||||
/doc/latex/
|
||||
|
||||
/examples/aladin
|
||||
/examples/atom2
|
||||
/examples/d9
|
||||
|
||||
@ -4,6 +4,10 @@ if ENABLE_EXAMPLES
|
||||
SUBDIRS += examples
|
||||
endif
|
||||
|
||||
if ENABLE_DOC
|
||||
SUBDIRS += doc
|
||||
endif
|
||||
|
||||
AM_MAKEFLAGS = -s
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
|
||||
12
configure.ac
12
configure.ac
@ -53,9 +53,19 @@ AC_ARG_ENABLE([examples],
|
||||
[], [enable_examples=yes])
|
||||
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.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CC_C99
|
||||
AC_CHECK_PROGS([DOXYGEN], [doxygen])
|
||||
|
||||
AM_CONDITIONAL([HAVE_DOXYGEN],[test -n "$DOXYGEN"])
|
||||
|
||||
# Enable automake silent build rules.
|
||||
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
||||
@ -159,6 +169,8 @@ AC_CONFIG_FILES([
|
||||
include/libdivecomputer/version.h
|
||||
src/Makefile
|
||||
src/libdivecomputer.rc
|
||||
doc/Makefile
|
||||
doc/doxygen.cfg
|
||||
examples/Makefile
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
||||
12
doc/Makefile.am
Normal file
12
doc/Makefile.am
Normal 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
2427
doc/doxygen.cfg.in
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user