Add Doxygen support

This change adds Doxygen support in the configure/make step. Doxygen is
optional, and the absence of Doxygen should not break the build.
debian-packaging
nirenjan 2020-04-18 01:35:57 -07:00
parent 34dc1b8a32
commit 0204103ccd
3 changed files with 2556 additions and 4 deletions

2535
Doxyfile.in 100644

File diff suppressed because it is too large Load Diff

View File

@ -9,4 +9,17 @@ ACLOCAL_AMFLAGS = -I m4
SUBDIRS = lib utils tests SUBDIRS = lib utils tests
# Extra files that need to be in the distribution # Extra files that need to be in the distribution
EXTRA_DIST = AUTHORS ChangeLog.md README.md LICENSE EXTRA_DIST = AUTHORS ChangeLog.md README.md LICENSE Doxyfile.in
# Doxygen support
if HAVE_DOXYGEN
docs/.stamp:
$(AM_V_GEN)$(DOXYGEN) Doxyfile
$(AM_V_at)touch $@
CLEANFILES = docs/.stamp
all-local: docs/.stamp
clean-local:
rm -rf $(top_builddir)/docs
endif

View File

@ -27,9 +27,13 @@ AC_SUBST([X52_INCLUDE], ["-I \$(top_srcdir)/lib/libx52"])
# Check for pthreads # Check for pthreads
ACX_PTHREAD ACX_PTHREAD
# LIBS="$PTHREAD_LIBS $LIBS"
# CFLAGS="$PTHREAD_CFLAGS $CFLAGS" # Doxygen Support
# CC="$PTHREAD_CC" AC_CHECK_PROGS([DOXYGEN], [doxygen])
AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"])
AM_COND_IF([HAVE_DOXYGEN],
[AC_CONFIG_FILES([Doxyfile])],
[AC_MSG_WARN(["Doxygen not found; continuing without doxygen support"])])
AC_CONFIG_FILES([ AC_CONFIG_FILES([
Makefile Makefile