summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfdd/subdir.am2
-rw-r--r--bgpd/subdir.am2
-rwxr-xr-xconfigure.ac11
-rw-r--r--doc/developer/building-frr-for-centos6.rst9
-rw-r--r--doc/manpages/subdir.am10
-rw-r--r--eigrpd/subdir.am2
-rw-r--r--isisd/subdir.am2
-rw-r--r--ldpd/subdir.am2
-rw-r--r--nhrpd/subdir.am2
-rw-r--r--ospf6d/subdir.am2
-rw-r--r--ospfclient/subdir.am2
-rw-r--r--ospfd/subdir.am2
-rw-r--r--pbrd/subdir.am2
-rw-r--r--pimd/subdir.am4
-rw-r--r--redhat/README.rpm_build.md5
-rw-r--r--redhat/frr.spec.in11
-rw-r--r--ripd/subdir.am2
-rw-r--r--ripngd/subdir.am2
-rw-r--r--sharpd/subdir.am2
-rw-r--r--staticd/subdir.am2
-rw-r--r--vtysh/subdir.am2
-rw-r--r--watchfrr/subdir.am2
-rw-r--r--zebra/subdir.am2
23 files changed, 49 insertions, 35 deletions
diff --git a/bfdd/subdir.am b/bfdd/subdir.am
index 7447519b21..334e974b04 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 6ab63abea5..4291388567 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 294d3bf325..0f5ca0da20 100755
--- a/configure.ac
+++ b/configure.ac
@@ -1315,8 +1315,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 --------------------
@@ -2044,6 +2049,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/developer/building-frr-for-centos6.rst b/doc/developer/building-frr-for-centos6.rst
index d4c2c3bfd0..fd75854452 100644
--- a/doc/developer/building-frr-for-centos6.rst
+++ b/doc/developer/building-frr-for-centos6.rst
@@ -168,10 +168,11 @@ an example.)
--enable-eigrpd \
--enable-babeld \
--with-pkg-git-version \
- --with-pkg-extra-version=-MyOwnFRRVersion
- make SPHINXBUILD=sphinx-build2.7
- make check PYTHON=/usr/bin/python2.7 SPHINXBUILD=sphinx-build2.7
- sudo make SPHINXBUILD=sphinx-build2.7 install
+ --with-pkg-extra-version=-MyOwnFRRVersion \
+ SPHINXBUILD=sphinx-build2.7
+ make
+ make check PYTHON=/usr/bin/python2.7
+ sudo make install
Create empty FRR configuration files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
diff --git a/doc/manpages/subdir.am b/doc/manpages/subdir.am
index 0ce9161db6..4a9aa4de4d 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 75b77feee6..bc48173bba 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 855cd9dc54..7571255e59 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 b42f401f25..24e738d622 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 f7575971e9..758c22e2be 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 5338e1ea37..d9c29f2651 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 d880f9fc70..df7d85a1f5 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 2b42b5230b..83074b5ac0 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 49a07e1f60..7947559034 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 00cabb99b0..fef8e36577 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/redhat/README.rpm_build.md b/redhat/README.rpm_build.md
index 93a731d685..a3f095786d 100644
--- a/redhat/README.rpm_build.md
+++ b/redhat/README.rpm_build.md
@@ -27,8 +27,9 @@ Building your own FRRouting RPM
cd frr
./bootstrap.sh
- ./configure --with-pkg-extra-version=-MyRPMVersion
- make SPHINXBUILD=sphinx-build2.7 dist
+ ./configure --with-pkg-extra-version=-MyRPMVersion \
+ SPHINXBUILD=sphinx-build2.7
+ make dist
Note: configure parameters are not important for the RPM building - except the `with-pkg-extra-version` if you want to give the RPM a specific name to
mark your own unoffical build
diff --git a/redhat/frr.spec.in b/redhat/frr.spec.in
index d001f3c395..9c232c2bd5 100644
--- a/redhat/frr.spec.in
+++ b/redhat/frr.spec.in
@@ -343,22 +343,23 @@ developing OSPF-API and frr applications.
--disable-rpki \
%endif
%if %{with_bfdd}
- --enable-bfdd
+ --enable-bfdd \
%else
- --disable-bfdd
+ --disable-bfdd \
%endif
+ SPHINXBUILD=%{sphinx}
-make %{?_smp_mflags} MAKEINFO="makeinfo --no-split" SPHINXBUILD=%{sphinx}
+make %{?_smp_mflags} MAKEINFO="makeinfo --no-split"
pushd doc
-make SPHINXBUILD=%{sphinx} info
+make info
popd
%install
mkdir -p %{buildroot}%{_sysconfdir}/{frr,sysconfig,logrotate.d,pam.d,default} \
%{buildroot}%{_localstatedir}/log/frr %{buildroot}%{_infodir}
-make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" SPHINXBUILD=%{sphinx} install
+make DESTDIR=%{buildroot} INSTALL="install -p" CP="cp -p" install
# Remove this file, as it is uninstalled and causes errors when building on RH9
rm -rf %{buildroot}/usr/share/info/dir
diff --git a/ripd/subdir.am b/ripd/subdir.am
index f2c54c835e..0d06e7e653 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 0948b23342..8f834a1d29 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 ecc62af142..2a34aecfb3 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 f1071545ab..33cc0e2050 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 3d40f37d22..932429a87c 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 96df81d4a6..f0b49c9a84 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 ac0abe348e..a87fcec41f 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