summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)