"make sandbox" wants to install the ReST manpages, but it failed when
Sphinx wasn't available.  This fixes the problem.

Fixes: 986311be550e ("ovs-sandbox: Install .rst manpages into the sandbox as 
well.")
Reported-by: Justin Pettit <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
---
 Documentation/automake.mk | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Documentation/automake.mk b/Documentation/automake.mk
index 24fe63d87140..6f38912f264b 100644
--- a/Documentation/automake.mk
+++ b/Documentation/automake.mk
@@ -178,8 +178,8 @@ extract_stem_and_section = \
        eval "mandir=\$$man$${section}dir"; \
        test -n "$$mandir" || { echo "unknown directory for manpage section 
$$section"; continue; }
 
-if HAVE_SPHINX
 INSTALL_DATA_LOCAL += install-man-rst
+if HAVE_SPHINX
 install-man-rst: docs-check
        @$(set_mandirs); \
        for rst in $(RST_MANPAGES); do \
@@ -189,6 +189,9 @@ install-man-rst: docs-check
            echo " $(INSTALL_DATA) $(SPHINXBUILDDIR)/man/$$stem.$$section 
'$(DESTDIR)'\"$$mandir/$$stem.$$section\""; \
            $(INSTALL_DATA) $(SPHINXBUILDDIR)/man/$$stem.$$section 
'$(DESTDIR)'"$$mandir/$$stem.$$section"; \
        done
+else
+install-man-rst:
+       @:
 endif
 
 UNINSTALL_LOCAL += uninstall-man-rst
-- 
2.10.2

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to