diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2018-09-05 11:25:24 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-09 20:01:08 +0200 |
commit | f4f2f2ccac75f5498924288adf814b54ee1e1c81 (patch) | |
tree | 7f23fce01fb6bbb509cb6f1e9ae4de683bab75a4 | |
parent | Merge pull request #2862 from opensourcerouting/non-recursive (diff) | |
download | frr-f4f2f2ccac75f5498924288adf814b54ee1e1c81.tar.xz frr-f4f2f2ccac75f5498924288adf814b54ee1e1c81.zip |
build: fix not building docs w/o sphinx
Can't build manpages without sphinx-build, oops...
Signed-off-by: David Lamparter <equinox@diac24.net>
-rw-r--r-- | bfdd/subdir.am | 2 | ||||
-rw-r--r-- | bgpd/subdir.am | 2 | ||||
-rwxr-xr-x | configure.ac | 11 | ||||
-rw-r--r-- | doc/manpages/subdir.am | 10 | ||||
-rw-r--r-- | eigrpd/subdir.am | 2 | ||||
-rw-r--r-- | isisd/subdir.am | 2 | ||||
-rw-r--r-- | ldpd/subdir.am | 2 | ||||
-rw-r--r-- | nhrpd/subdir.am | 2 | ||||
-rw-r--r-- | ospf6d/subdir.am | 2 | ||||
-rw-r--r-- | ospfclient/subdir.am | 2 | ||||
-rw-r--r-- | ospfd/subdir.am | 2 | ||||
-rw-r--r-- | pbrd/subdir.am | 2 | ||||
-rw-r--r-- | pimd/subdir.am | 4 | ||||
-rw-r--r-- | ripd/subdir.am | 2 | ||||
-rw-r--r-- | ripngd/subdir.am | 2 | ||||
-rw-r--r-- | sharpd/subdir.am | 2 | ||||
-rw-r--r-- | staticd/subdir.am | 2 | ||||
-rw-r--r-- | vtysh/subdir.am | 2 | ||||
-rw-r--r-- | watchfrr/subdir.am | 2 | ||||
-rw-r--r-- | zebra/subdir.am | 2 |
20 files changed, 35 insertions, 24 deletions
diff --git a/bfdd/subdir.am b/bfdd/subdir.am index 7447519b2..334e974b0 100644 --- a/bfdd/subdir.am +++ b/bfdd/subdir.am @@ -7,7 +7,7 @@ noinst_LIBRARIES += bfdd/libbfd.a sbin_PROGRAMS += bfdd/bfdd dist_examples_DATA += bfdd/bfdd.conf.sample vtysh_scan += $(top_srcdir)/bfdd/bfdd_vty.c -rstman8_DATA += $(MANBUILD)/bfdd.8 +man8 += $(MANBUILD)/bfdd.8 endif bfdd_libbfd_a_SOURCES = \ diff --git a/bgpd/subdir.am b/bgpd/subdir.am index 6ab63abea..429138856 100644 --- a/bgpd/subdir.am +++ b/bgpd/subdir.am @@ -42,7 +42,7 @@ endif if RPKI module_LTLIBRARIES += bgpd/bgpd_rpki.la endif -rstman8_DATA += $(MANBUILD)/bgpd.8 +man8 += $(MANBUILD)/bgpd.8 endif bgpd_libbgp_a_SOURCES = \ diff --git a/configure.ac b/configure.ac index 521d27a68..27fca411d 100755 --- a/configure.ac +++ b/configure.ac @@ -1351,8 +1351,13 @@ FRR_INCLUDES ])dnl dnl disable doc check -AC_CHECK_PROGS([SPHINXBUILD], [sphinx-build sphinx-build3 sphinx-build2], [no]) -AM_CONDITIONAL(DOC, test "${enable_doc}" != "no") +AC_CHECK_PROGS([SPHINXBUILD], [sphinx-build sphinx-build3 sphinx-build2], [/bin/false]) +if test "$SPHINXBUILD" = "/bin/false"; then + if test "${enable_doc}" = "yes"; then + AC_MSG_ERROR([Documentation was explicitly requested with --enable-doc but sphinx-build is not available. Please disable docs or install sphinx.]) + fi +fi +AM_CONDITIONAL(DOC, test "${enable_doc}" != "no" -a "$SPHINXBUILD" != "/bin/false") AM_CONDITIONAL(DOC_HTML, test "${enable_doc_html}" = "yes") dnl -------------------- @@ -2077,6 +2082,6 @@ The above user and group must have read/write access to the state file directory and to the config files in the config file directory." if test "${enable_doc}" != "no";then - AS_IF([test "x$SPHINXBUILD" = xno], + AS_IF([test "$SPHINXBUILD" = /bin/false], AC_MSG_WARN(sphinx-build is missing but required to build documentation)) fi diff --git a/doc/manpages/subdir.am b/doc/manpages/subdir.am index 0ce9161db..4a9aa4de4 100644 --- a/doc/manpages/subdir.am +++ b/doc/manpages/subdir.am @@ -47,10 +47,16 @@ rstman8dir = $(mandir)/man8 rstman1_DATA = rstman8_DATA = -rstman1_DATA += $(MANBUILD)/frr.1 +if DOC +rstman1_DATA += $(man1) +rstman8_DATA += $(man8) +endif # DOC + +man1 = $(MANBUILD)/frr.1 +man8 = # dependency -$(rstman8_DATA) $(rstman1_DATA): $(MANBUILD)/man.stamp +$(man8) $(man1): $(MANBUILD)/man.stamp # # hook-ins for clean / doc diff --git a/eigrpd/subdir.am b/eigrpd/subdir.am index 75b77feee..bc48173bb 100644 --- a/eigrpd/subdir.am +++ b/eigrpd/subdir.am @@ -11,7 +11,7 @@ vtysh_scan += \ $(top_srcdir)/eigrpd/eigrp_vty.c \ # end # $(top_srcdir)/eigrpd/eigrp_routemap.c -rstman8_DATA += $(MANBUILD)/eigrpd.8 +man8 += $(MANBUILD)/eigrpd.8 endif eigrpd_libeigrp_a_SOURCES = \ diff --git a/isisd/subdir.am b/isisd/subdir.am index 855cd9dc5..7571255e5 100644 --- a/isisd/subdir.am +++ b/isisd/subdir.am @@ -15,7 +15,7 @@ vtysh_scan += \ $(top_srcdir)/isisd/isis_vty_isisd.c \ $(top_srcdir)/isisd/isisd.c \ # end -rstman8_DATA += $(MANBUILD)/isisd.8 +man8 += $(MANBUILD)/isisd.8 endif if FABRICD diff --git a/ldpd/subdir.am b/ldpd/subdir.am index b42f401f2..24e738d62 100644 --- a/ldpd/subdir.am +++ b/ldpd/subdir.am @@ -7,7 +7,7 @@ noinst_LIBRARIES += ldpd/libldp.a sbin_PROGRAMS += ldpd/ldpd dist_examples_DATA += ldpd/ldpd.conf.sample vtysh_scan += $(top_srcdir)/ldpd/ldp_vty_cmds.c -rstman8_DATA += $(MANBUILD)/ldpd.8 +man8 += $(MANBUILD)/ldpd.8 endif ldpd_libldp_a_SOURCES = \ diff --git a/nhrpd/subdir.am b/nhrpd/subdir.am index f7575971e..758c22e2b 100644 --- a/nhrpd/subdir.am +++ b/nhrpd/subdir.am @@ -5,7 +5,7 @@ if NHRPD sbin_PROGRAMS += nhrpd/nhrpd vtysh_scan += $(top_srcdir)/nhrpd/nhrp_vty.c -rstman8_DATA += $(MANBUILD)/nhrpd.8 +man8 += $(MANBUILD)/nhrpd.8 endif nhrpd_nhrpd_LDADD = lib/libfrr.la @LIBCAP@ @CARES_LIBS@ diff --git a/ospf6d/subdir.am b/ospf6d/subdir.am index 5338e1ea3..d9c29f265 100644 --- a/ospf6d/subdir.am +++ b/ospf6d/subdir.am @@ -26,7 +26,7 @@ vtysh_scan += \ if SNMP module_LTLIBRARIES += ospf6d/ospf6d_snmp.la endif -rstman8_DATA += $(MANBUILD)/ospf6d.8 +man8 += $(MANBUILD)/ospf6d.8 endif ospf6d_libospf6_a_SOURCES = \ diff --git a/ospfclient/subdir.am b/ospfclient/subdir.am index d880f9fc7..df7d85a1f 100644 --- a/ospfclient/subdir.am +++ b/ospfclient/subdir.am @@ -5,7 +5,7 @@ if OSPFCLIENT lib_LTLIBRARIES += ospfclient/libfrrospfapiclient.la sbin_PROGRAMS += ospfclient/ospfclient -rstman8_DATA += $(MANBUILD)/ospfclient.8 +man8 += $(MANBUILD)/ospfclient.8 endif ospfclient_libfrrospfapiclient_la_LDFLAGS = -version-info 0:0:0 diff --git a/ospfd/subdir.am b/ospfd/subdir.am index 2b42b5230..83074b5ac 100644 --- a/ospfd/subdir.am +++ b/ospfd/subdir.am @@ -19,7 +19,7 @@ vtysh_scan += \ if SNMP module_LTLIBRARIES += ospfd/ospfd_snmp.la endif -rstman8_DATA += $(MANBUILD)/ospfd.8 +man8 += $(MANBUILD)/ospfd.8 endif ospfd_libfrrospf_a_SOURCES = \ diff --git a/pbrd/subdir.am b/pbrd/subdir.am index 49a07e1f6..794755903 100644 --- a/pbrd/subdir.am +++ b/pbrd/subdir.am @@ -10,7 +10,7 @@ vtysh_scan += \ $(top_srcdir)/pbrd/pbr_vty.c \ $(top_srcdir)/pbrd/pbr_debug.c \ # end -rstman8_DATA += $(MANBUILD)/pbrd.8 +man8 += $(MANBUILD)/pbrd.8 endif pbrd_libpbr_a_SOURCES = \ diff --git a/pimd/subdir.am b/pimd/subdir.am index 00cabb99b..fef8e3657 100644 --- a/pimd/subdir.am +++ b/pimd/subdir.am @@ -9,8 +9,8 @@ bin_PROGRAMS += pimd/mtracebis noinst_PROGRAMS += pimd/test_igmpv3_join dist_examples_DATA += pimd/pimd.conf.sample vtysh_scan += $(top_srcdir)/pimd/pim_cmd.c -rstman8_DATA += $(MANBUILD)/pimd.8 -rstman8_DATA += $(MANBUILD)/mtracebis.8 +man8 += $(MANBUILD)/pimd.8 +man8 += $(MANBUILD)/mtracebis.8 endif pimd_libpim_a_SOURCES = \ diff --git a/ripd/subdir.am b/ripd/subdir.am index f2c54c835..0d06e7e65 100644 --- a/ripd/subdir.am +++ b/ripd/subdir.am @@ -17,7 +17,7 @@ vtysh_scan += \ if SNMP module_LTLIBRARIES += ripd/ripd_snmp.la endif -rstman8_DATA += $(MANBUILD)/ripd.8 +man8 += $(MANBUILD)/ripd.8 endif ripd_librip_a_SOURCES = \ diff --git a/ripngd/subdir.am b/ripngd/subdir.am index 0948b2334..8f834a1d2 100644 --- a/ripngd/subdir.am +++ b/ripngd/subdir.am @@ -12,7 +12,7 @@ vtysh_scan += \ $(top_srcdir)/ripngd/ripng_zebra.c \ $(top_srcdir)/ripngd/ripngd.c \ # end -rstman8_DATA += $(MANBUILD)/ripngd.8 +man8 += $(MANBUILD)/ripngd.8 endif ripngd_libripng_a_SOURCES = \ diff --git a/sharpd/subdir.am b/sharpd/subdir.am index ecc62af14..2a34aecfb 100644 --- a/sharpd/subdir.am +++ b/sharpd/subdir.am @@ -7,7 +7,7 @@ noinst_LIBRARIES += sharpd/libsharp.a sbin_PROGRAMS += sharpd/sharpd dist_examples_DATA += sharpd/sharpd.conf.sample vtysh_scan += $(top_srcdir)/sharpd/sharp_vty.c -rstman8_DATA += $(MANBUILD)/sharpd.8 +man8 += $(MANBUILD)/sharpd.8 endif sharpd_libsharp_a_SOURCES = \ diff --git a/staticd/subdir.am b/staticd/subdir.am index f1071545a..33cc0e205 100644 --- a/staticd/subdir.am +++ b/staticd/subdir.am @@ -7,7 +7,7 @@ noinst_LIBRARIES += staticd/libstatic.a sbin_PROGRAMS += staticd/staticd dist_examples_DATA += staticd/staticd.conf.sample vtysh_scan += $(top_srcdir)/staticd/static_vty.c -rstman8_DATA += $(MANBUILD)/staticd.8 +man8 += $(MANBUILD)/staticd.8 endif staticd_libstatic_a_SOURCES = \ diff --git a/vtysh/subdir.am b/vtysh/subdir.am index 3d40f37d2..932429a87 100644 --- a/vtysh/subdir.am +++ b/vtysh/subdir.am @@ -5,7 +5,7 @@ if VTYSH bin_PROGRAMS += vtysh/vtysh dist_examples_DATA += vtysh/vtysh.conf.sample -rstman1_DATA += $(MANBUILD)/vtysh.1 +man1 += $(MANBUILD)/vtysh.1 endif vtysh_vtysh_SOURCES = \ diff --git a/watchfrr/subdir.am b/watchfrr/subdir.am index 96df81d4a..f0b49c9a8 100644 --- a/watchfrr/subdir.am +++ b/watchfrr/subdir.am @@ -5,7 +5,7 @@ if WATCHFRR sbin_PROGRAMS += watchfrr/watchfrr vtysh_scan += $(top_srcdir)/watchfrr/watchfrr_vty.c -rstman8_DATA += $(MANBUILD)/watchfrr.8 +man8 += $(MANBUILD)/watchfrr.8 endif noinst_HEADERS += \ diff --git a/zebra/subdir.am b/zebra/subdir.am index 91bd792b0..a8c5afb1d 100644 --- a/zebra/subdir.am +++ b/zebra/subdir.am @@ -32,7 +32,7 @@ if FPM module_LTLIBRARIES += zebra/zebra_fpm.la endif -rstman8_DATA += $(MANBUILD)/zebra.8 +man8 += $(MANBUILD)/zebra.8 ## endif ZEBRA endif |