From caf166d8e6061a12ed531d5195396543d6f4dcee Mon Sep 17 00:00:00 2001 From: Duncan Roe Date: Sat, 8 Feb 2020 12:28:44 +1100 Subject: build: doc: "make" builds & installs a full set of man pages This enables one to enter "man " and get the appropriate group man page created by doxygen. - New makefile in doxygen directory. Rebuilds documentation if any sources change that contain doxygen comments, or if fixmanpages.sh changes - New shell script fixmanpages.sh which - Renames each group man page to the first function listed therein - Creates symlinks for subsequently listed functions (if any) - Deletes _* temp files - Update top-level makefile to visit new subdir doxygen - Update top-level configure to only build documentation if doxygen installed Signed-off-by: Duncan Roe Signed-off-by: Florian Westphal --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 0c08459..e99b07a 100644 --- a/configure.ac +++ b/configure.ac @@ -33,5 +33,15 @@ dnl Output the makefiles AC_CONFIG_FILES([Makefile src/Makefile utils/Makefile examples/Makefile libnetfilter_queue.pc doxygen.cfg include/Makefile include/libnetfilter_queue/Makefile + doxygen/Makefile include/linux/Makefile include/linux/netfilter/Makefile]) AC_OUTPUT + +dnl Only run doxygen Makefile if doxygen installed + +AC_CHECK_PROGS([DOXYGEN], [doxygen]) +if test -z "$DOXYGEN"; + then AC_MSG_WARN([Doxygen not found - continuing without Doxygen support]) +fi + + AM_CONDITIONAL([HAVE_DOXYGEN], [test -n "$DOXYGEN"]) -- cgit v1.2.3