mirror of https://github.com/nirenjan/libx52.git
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
parent
34dc1b8a32
commit
0204103ccd
File diff suppressed because it is too large
Load Diff
15
Makefile.am
15
Makefile.am
|
@ -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
|
||||||
|
|
10
configure.ac
10
configure.ac
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue