summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorDuncan Roe <duncan_roe@optusnet.com.au>2021-10-17 12:39:51 +1100
committerPablo Neira Ayuso <pablo@netfilter.org>2021-10-27 10:14:54 +0200
commit74576db959cbb762780fdc3feadf6778a62c955b (patch)
treeb4e4a66a4450a2b5fbe02759ed2dd977db961123 /autogen.sh
parent826d412956d263ba0c05a1af52c5d78abfccae21 (diff)
build: doc: `make` generates requested documentation
Generate man pages, HTML, neither or both according to ./configure. Based on the work done for libnetfilter_queue. [ This patch updates the default ./configure option to build the manpages in case that doxygen is available. ] Signed-off-by: Duncan Roe <duncan_roe@optusnet.com.au> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 5e1344a..93e2a23 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,12 @@
#!/bin/sh -e
+BUILD_MAN=doxygen/build_man.sh
+
+# Allow to override build_man.sh url for local testing
+# E.g. export NFQ_URL=file:///usr/src/libnetfilter_queue
+curl ${NFQ_URL:-https://git.netfilter.org/libnetfilter_queue/plain}/$BUILD_MAN\
+ -o$BUILD_MAN
+chmod a+x $BUILD_MAN
+
autoreconf -fi
rm -Rf autom4te.cache