- Move doxygen.cfg.in to doxygen/ - Tell doxygen.cfg.in where the sources are - Let doxygen.cfg.in default its output to CWD - In Makefile, `doxygen doxygen.cfg` "just works" Signed-off-by: Duncan Roe <duncan_roe@xxxxxxxxxxxxxxx> --- configure.ac | 4 ++-- doxygen/Makefile.am | 12 +----------- doxygen.cfg.in => doxygen/doxygen.cfg.in | 3 +-- 3 files changed, 4 insertions(+), 15 deletions(-) rename doxygen.cfg.in => doxygen/doxygen.cfg.in (93%) diff --git a/configure.ac b/configure.ac index 0fe754c..4721eeb 100644 --- a/configure.ac +++ b/configure.ac @@ -31,9 +31,9 @@ PKG_CHECK_MODULES([LIBMNL], [libmnl >= 1.0.3]) dnl Output the makefiles AC_CONFIG_FILES([Makefile src/Makefile utils/Makefile examples/Makefile - libnetfilter_queue.pc doxygen.cfg + libnetfilter_queue.pc include/Makefile include/libnetfilter_queue/Makefile - doxygen/Makefile + doxygen/Makefile doxygen/doxygen.cfg include/linux/Makefile include/linux/netfilter/Makefile]) AC_ARG_WITH([doxygen], [AS_HELP_STRING([--with-doxygen], diff --git a/doxygen/Makefile.am b/doxygen/Makefile.am index 5068544..f38009b 100644 --- a/doxygen/Makefile.am +++ b/doxygen/Makefile.am @@ -4,17 +4,7 @@ doc_srcs = $(shell find $(top_srcdir)/src -name '*.c') doxyfile.stamp: $(doc_srcs) Makefile.am rm -rf html man - -# Test for running under make distcheck. -# If so, sibling src directory will be empty: -# move it out of the way and symlink the real one while we run doxygen. - [ -f ../src/Makefile.in ] || \ -{ set -x; cd ..; mv src src.distcheck; ln -s $(top_srcdir)/src; } - - cd ..; doxygen doxygen.cfg >/dev/null - - [ ! -d ../src.distcheck ] || \ -{ set -x; cd ..; rm src; mv src.distcheck src; } + doxygen doxygen.cfg >/dev/null $(abs_top_srcdir)/doxygen/build_man.sh diff --git a/doxygen.cfg.in b/doxygen/doxygen.cfg.in similarity index 93% rename from doxygen.cfg.in rename to doxygen/doxygen.cfg.in index 266782e..99b5c90 100644 --- a/doxygen.cfg.in +++ b/doxygen/doxygen.cfg.in @@ -1,12 +1,11 @@ # Difference with default Doxyfile 1.8.20 PROJECT_NAME = @PACKAGE@ PROJECT_NUMBER = @VERSION@ -OUTPUT_DIRECTORY = doxygen ABBREVIATE_BRIEF = FULL_PATH_NAMES = NO TAB_SIZE = 8 OPTIMIZE_OUTPUT_FOR_C = YES -INPUT = . +INPUT = @abs_top_srcdir@/src FILE_PATTERNS = *.c RECURSIVE = YES EXCLUDE_SYMBOLS = EXPORT_SYMBOL \ -- 2.17.5