summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Nilsson <troglobit@gmail.com>2019-10-10 06:59:48 +0200
committerJoachim Nilsson <troglobit@gmail.com>2019-10-10 06:59:48 +0200
commit8dc36788e7bde7f225ed9f0bd8e6472be0e839a6 (patch)
tree11ddaec1d7fa1e1495f9eb491b2f0e310fc5b1ae
parentc9aed10a0c73938129d8d49587ca491e750ebfd2 (diff)
downloadlibnet-8dc36788e7bde7f225ed9f0bd8e6472be0e839a6.tar.gz
doc: Restore distribution of generated man pages
- All generated content should be kept out of git - End users should not need to have doxygen installed - Manual pages should be included in dist tar/zip files, for downstream packagers and end-users Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac2
-rw-r--r--doc/Makefile.am1
-rw-r--r--doc/man/Makefile.am1
-rw-r--r--doc/man/man3/Makefile.am4
5 files changed, 12 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index feccc81..b515796 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -28,6 +28,10 @@ endif
doc: doxygen-doc
$(AM_V_GEN)cd $(DX_DOCDIR) && ./fixmanpages && cd -
+
+## The distribution should include man pages, which are generated
+dist-hook: doc
+
## Generate MD5 checksum file
MD5 = md5sum
md5-dist:
diff --git a/configure.ac b/configure.ac
index b85de9f..ada87dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -32,6 +32,8 @@ AC_CONFIG_FILES([Makefile \
Doxyfile \
libnet-config \
doc/Makefile \
+ doc/man/Makefile \
+ doc/man/man3/Makefile \
include/Makefile \
include/libnet.h \
libnet.pc \
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 9aefdb0..1f4dc3a 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,3 +1,4 @@
+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
diff --git a/doc/man/Makefile.am b/doc/man/Makefile.am
new file mode 100644
index 0000000..c638ab2
--- /dev/null
+++ b/doc/man/Makefile.am
@@ -0,0 +1 @@
+SUBDIRS = man3
diff --git a/doc/man/man3/Makefile.am b/doc/man/man3/Makefile.am
new file mode 100644
index 0000000..ef1bafe
--- /dev/null
+++ b/doc/man/man3/Makefile.am
@@ -0,0 +1,4 @@
+man3_MANS = $(srcdir)/libnet.3 \
+ $(srcdir)/libnet-functions.3 \
+ $(srcdir)/libnet-macros.3
+EXTRA_DIST = $(man3_MANS)