doc: only package man pages for daemons that are built

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
David Ward 2012-04-30 11:36:15 -04:00 committed by David Lamparter
parent 2e14a74806
commit f027d331fc
2 changed files with 47 additions and 2 deletions

View file

@ -624,6 +624,7 @@ dnl [TODO] on Linux, and in [TODO] on Solaris.
* ) ;; * ) ;;
esac esac
AC_SUBST(LIBREADLINE) AC_SUBST(LIBREADLINE)
AM_CONDITIONAL(VTYSH, test "x$VTYSH" = "xvtysh")
dnl ---------- dnl ----------
dnl PAM module dnl PAM module
@ -1228,36 +1229,42 @@ if test "${enable_zebra}" = "no";then
else else
ZEBRA="zebra" ZEBRA="zebra"
fi fi
AM_CONDITIONAL(ZEBRA, test "x$ZEBRA" = "xzebra")
if test "${enable_bgpd}" = "no";then if test "${enable_bgpd}" = "no";then
BGPD="" BGPD=""
else else
BGPD="bgpd" BGPD="bgpd"
fi fi
AM_CONDITIONAL(BGPD, test "x$BGPD" = "xbgpd")
if test "${enable_ripd}" = "no";then if test "${enable_ripd}" = "no";then
RIPD="" RIPD=""
else else
RIPD="ripd" RIPD="ripd"
fi fi
AM_CONDITIONAL(RIPD, test "x$RIPD" = "xripd")
if test "${enable_ospfd}" = "no";then if test "${enable_ospfd}" = "no";then
OSPFD="" OSPFD=""
else else
OSPFD="ospfd" OSPFD="ospfd"
fi fi
AM_CONDITIONAL(OSPFD, test "x$OSPFD" = "xospfd")
if test "${enable_babeld}" = "no";then if test "${enable_babeld}" = "no";then
BABELD="" BABELD=""
else else
BABELD="babeld" BABELD="babeld"
fi fi
AM_CONDITIONAL(BABELD, test "x$BABELD" = "xbabeld")
if test "${enable_watchquagga}" = "no";then if test "${enable_watchquagga}" = "no";then
WATCHQUAGGA="" WATCHQUAGGA=""
else else
WATCHQUAGGA="watchquagga" WATCHQUAGGA="watchquagga"
fi fi
AM_CONDITIONAL(WATCHQUAGGA, test "x$WATCHQUAGGA" = "xwatchquagga")
OSPFCLIENT="" OSPFCLIENT=""
if test "${enable_opaque_lsa}" != "no"; then if test "${enable_opaque_lsa}" != "no"; then
@ -1270,24 +1277,28 @@ if test "${enable_opaque_lsa}" != "no"; then
fi fi
fi fi
AM_CONDITIONAL(OSPFCLIENT, test "x$OSPFCLIENT" = "xospfclient")
case "${enable_ripngd}" in case "${enable_ripngd}" in
"yes") RIPNGD="ripngd";; "yes") RIPNGD="ripngd";;
"no" ) RIPNGD="";; "no" ) RIPNGD="";;
* ) ;; * ) ;;
esac esac
AM_CONDITIONAL(RIPNGD, test "x$RIPNGD" = "xripngd")
case "${enable_ospf6d}" in case "${enable_ospf6d}" in
"yes") OSPF6D="ospf6d";; "yes") OSPF6D="ospf6d";;
"no" ) OSPF6D="";; "no" ) OSPF6D="";;
* ) ;; * ) ;;
esac esac
AM_CONDITIONAL(OSPF6D, test "x$OSPF6D" = "xospf6d")
case "${enable_isisd}" in case "${enable_isisd}" in
"yes") ISISD="isisd";; "yes") ISISD="isisd";;
"no" ) ISISD="";; "no" ) ISISD="";;
* ) ;; * ) ;;
esac esac
AM_CONDITIONAL(ISISD, test "x$ISISD" = "xisisd")
# XXX Perhaps auto-enable on Solaris, but that's messy for cross builds. # XXX Perhaps auto-enable on Solaris, but that's messy for cross builds.
case "${enable_solaris}" in case "${enable_solaris}" in

View file

@ -61,9 +61,43 @@ quagga_TEXINFOS = appendix.texi babeld.texi basic.texi bgpd.texi filter.texi \
.dia.png: .dia.png:
$(DIATOPNG) "$@" $< $(DIATOPNG) "$@" $<
man_MANS = vtysh.1 bgpd.8 ospf6d.8 ospfd.8 ripd.8 ripngd.8 zebra.8 isisd.8 man_MANS =
EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt $(man_MANS) \ if BGPD
man_MANS += bgpd.8
endif
if ISISD
man_MANS += isisd.8
endif
if OSPF6D
man_MANS += ospf6d.8
endif
if OSPFD
man_MANS += ospfd.8
endif
if RIPD
man_MANS += ripd.8
endif
if RIPNGD
man_MANS += ripngd.8
endif
if VTYSH
man_MANS += vtysh.1
endif
if ZEBRA
man_MANS += zebra.8
endif
EXTRA_DIST = BGP-TypeCode draft-zebra-00.ms draft-zebra-00.txt \
bgpd.8 isisd.8 ospf6d.8 ospfd.8 ripd.8 \
ripngd.8 vtysh.1 zebra.8 \
mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \ mpls/ChangeLog.opaque.txt mpls/cli_summary.txt \
mpls/opaque_lsa.txt mpls/ospfd.conf \ mpls/opaque_lsa.txt mpls/ospfd.conf \
$(figures_sources) $(figures_png) $(figures_txt) $(figures_sources) $(figures_png) $(figures_txt)