diff options
author | Joachim Nilsson <troglobit@gmail.com> | 2019-10-10 23:36:34 +0200 |
---|---|---|
committer | Joachim Nilsson <troglobit@gmail.com> | 2019-10-10 23:36:34 +0200 |
commit | f406201aa1736e95d0c1a2143bfeb843b53a2f09 (patch) | |
tree | de924fe87436a1ef655e27456fac5e1d6b4ac3c1 | |
parent | 8ce5b92a6ad469a03e4694c97da45b7772be37d6 (diff) | |
download | libnet-f406201aa1736e95d0c1a2143bfeb843b53a2f09.tar.gz |
Clean up generated man pages on distcheck and disable HTML
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | doc/Makefile.am | 8 | ||||
-rw-r--r-- | doc/man/man3/Makefile.am | 2 |
4 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 1722aee..e30b647 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ # Copyright (c) 1998 - 2004 Mike D. Schiffman <mike@infonexus.com> # All rights reserved. # -DISTCHECK_CONFIGURE_FLAGS = --enable-doxygen-doc --disable-samples +DISTCHECK_CONFIGURE_FLAGS = --enable-doxygen-doc --disable-doxygen-html --disable-samples ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} bin_SCRIPTS = libnet-config diff --git a/configure.ac b/configure.ac index d41de98..a7e5f97 100644 --- a/configure.ac +++ b/configure.ac @@ -164,6 +164,7 @@ DX_HTML_FEATURE(ON) DX_MAN_FEATURE(ON) DX_INIT_DOXYGEN(${PACKAGE_NAME}, [${top_builddir}/Doxyfile], [doc]) AM_CONDITIONAL(ENABLE_DOXYGEN,[test "x${DX_FLAG_doc}" = x1]) +AM_CONDITIONAL(ENABLE_HTML,[test "x${DX_FLAG_html}" = x1]) # Check for sample building AC_MSG_CHECKING([whether to build sample programs]) diff --git a/doc/Makefile.am b/doc/Makefile.am index 1f4dc3a..41e0224 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -2,3 +2,11 @@ SUBDIRS = man dist_doc_DATA = MIGRATION RAWSOCKET_NON_SEQUITUR EXTRA_DIST = fixmanpages.in libnet.Pod EXTRA_DIST += api-main.md api-head.html api-foot.html api-style.css +DISTCLEANFILES = libnet.tag + +if ENABLE_HTML +pkgdata_DATA = html/* + +clean-local: + -rm -rf html +endif diff --git a/doc/man/man3/Makefile.am b/doc/man/man3/Makefile.am index 9d99698..c5902f6 100644 --- a/doc/man/man3/Makefile.am +++ b/doc/man/man3/Makefile.am @@ -1,5 +1,5 @@ man3_MANS = $(srcdir)/libnet.3 \ $(srcdir)/libnet-functions.3 \ $(srcdir)/libnet-macros.3 -DISTCLEANFILES = $(man3_MANS) +DISTCLEANFILES = libnet.3 libnet-functions.3 libnet-macros.3 EXTRA_DIST = $(man3_MANS) |