]> git.proxmox.com Git - mirror_frr.git/commitdiff
build: fix not building docs w/o sphinx
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 5 Sep 2018 09:25:24 +0000 (11:25 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 9 Sep 2018 18:01:08 +0000 (20:01 +0200)
Can't build manpages without sphinx-build, oops...

Signed-off-by: David Lamparter <equinox@diac24.net>
20 files changed:
bfdd/subdir.am
bgpd/subdir.am
configure.ac
doc/manpages/subdir.am
eigrpd/subdir.am
isisd/subdir.am
ldpd/subdir.am
nhrpd/subdir.am
ospf6d/subdir.am
ospfclient/subdir.am
ospfd/subdir.am
pbrd/subdir.am
pimd/subdir.am
ripd/subdir.am
ripngd/subdir.am
sharpd/subdir.am
staticd/subdir.am
vtysh/subdir.am
watchfrr/subdir.am
zebra/subdir.am

index 7447519b213faa1aa202841a4d4bb83bcbeb294c..334e974b048a9eb1676666b4e63c8eaa65e3d97c 100644 (file)
@@ -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 = \
index 6ab63abea5739e7fa586a0fd68b56d6ed07bbf55..42913885675f3fedd63a1b9d897f053a5d12684d 100644 (file)
@@ -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 = \
index 521d27a682c8ec1ca7804cdadab28ed4cc2400b5..27fca411d1bc8c6dffe3923816d71420ef534eed 100755 (executable)
@@ -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
index 0ce9161db6908bd78d9f1fd9578265be7b955f73..4a9aa4de4d58acfa2e8e9f9bf859021cac9e7513 100644 (file)
@@ -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
index 75b77feee6a3ad1f6d0985b7a2043adb1adb1fde..bc48173bba11d9b593bf5bd16221eacd59db1443 100644 (file)
@@ -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 = \
index 855cd9dc54478cdf16f127febe8d30a52d5a81b8..7571255e59251cc0b22c135da34fd2967b9bd3c0 100644 (file)
@@ -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
index b42f401f25f259153c021bf0d5c542c14ed2cec0..24e738d6227a0805c5861f40d98e3f65bf3ab7b0 100644 (file)
@@ -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 = \
index f7575971e94b4dfa660bbfc1bd4b29c112e6cefb..758c22e2be87d62a406082d1688416df8fb4ab07 100644 (file)
@@ -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@
index 5338e1ea37cf8ef033b3eb25aef3ae14ec44644c..d9c29f2651b9e028996f72367ea2c1ff23386ef3 100644 (file)
@@ -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 = \
index d880f9fc70c7b8635aa3706b36f783e9e912e66a..df7d85a1f5d810ed637f425fa9d9bee6f0494f32 100644 (file)
@@ -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
index 2b42b5230b224b93d7ab0e06c6bea8055c0b21e0..83074b5ac018f8c8f2d6a0c152b3cde4e0671bdd 100644 (file)
@@ -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 = \
index 49a07e1f6032dd2ce0a642de482f83f761d91809..79475590345dd8ac9d7e8476fb47e7e5eadca393 100644 (file)
@@ -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 = \
index 00cabb99b04ed99ba7b1a076ee992744f34231e8..fef8e36577fe9f5116cafe43222d2d3b871a785f 100644 (file)
@@ -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 = \
index f2c54c835e1778dff503e4c09d0a623185c3bc20..0d06e7e653c0f7d00db57b434000902cfcbde20f 100644 (file)
@@ -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 = \
index 0948b2334271db388bf50ac5bebc466ec4ea2115..8f834a1d297d5200fd4b711a90b7264d6fbf5bc2 100644 (file)
@@ -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 = \
index ecc62af142fe0e86e183a8e55e6bdc51e82b6aa5..2a34aecfb3eff05f495b85f1222d594cb5cba3dc 100644 (file)
@@ -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 = \
index f1071545abe5d90686c51f800bd64ed5579a3a9e..33cc0e20505ea1d37b149595a3bcd034b294f27b 100644 (file)
@@ -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 = \
index 3d40f37d22919981174b14a76d605c42bca5b94f..932429a87c8ebf3eb8ae98cfd1f66c152f07d606 100644 (file)
@@ -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 = \
index 96df81d4a617eebc96adc4ef6aa6ea14056253b2..f0b49c9a8482101ea6386329abf9ce756b122541 100644 (file)
@@ -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 += \
index 91bd792b00b9b9f5f084d8bf07c8de00b76356d5..a8c5afb1d19c28269a29c8b36e1cb424a68c6dd5 100644 (file)
@@ -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