sphinx: more build fixing if sphinx-build is missing

Message ID dc0f818a-1f14-5519-3b3b-3d8141ca96dd@redhat.com
State Corrupt patch
Headers
Series sphinx: more build fixing if sphinx-build is missing |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Stephan Bergmann Nov. 13, 2022, 9:10 p.m. UTC
  ...similar to 1f9c79367e136e0ca5b775562e6111e1a0d0046f "sphinx: fix 
building if
sphinx-build is missing"

gcc/ChangeLog:

         * fortran/Make-lang.in: Build info pages conditionally.
---
  gcc/fortran/Make-lang.in | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)

+	else true; fi

  fortran.man: $(F95_MANFILES)
  

Patch

diff --git a/gcc/fortran/Make-lang.in b/gcc/fortran/Make-lang.in
index 48acbed1754..852b6f3327f 100644
--- a/gcc/fortran/Make-lang.in
+++ b/gcc/fortran/Make-lang.in
@@ -161,7 +161,9 @@  fortran.install-pdf: $(F95_PDFFILES)
  F95_MANFILES = doc/gfortran/man/man/gfortran.1

  doc/gfortran/man/man/gfortran.1: $(SPHINX_FILES)
-	+ make -C $(srcdir)/../doc man 
SOURCEDIR=$(abs_srcdir)/fortran/doc/gfortran 
BUILDDIR=$(objdir)/doc/gfortran/man SPHINXBUILD=$(SPHINX_BUILD)
+	+ if [ x$(HAS_SPHINX_BUILD) = xhas-sphinx-build ]; then \
+	  make -C $(srcdir)/../doc man 
SOURCEDIR=$(abs_srcdir)/fortran/doc/gfortran 
BUILDDIR=$(objdir)/doc/gfortran/man SPHINXBUILD=$(SPHINX_BUILD) \