aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-11-08 11:06:26 +0100
committerMartin Liska <mliska@suse.cz>2022-11-09 09:00:36 +0100
commite5821d3f62b5bf532db1be661459b7553a956fa2 (patch)
tree1b9271fc3dc7589b00711bf940ed77146f85368e /gcc/fortran
parent8857a1e350cf34c4ac06429ec4cb97228489dd07 (diff)
downloadgcc-e5821d3f62b5bf532db1be661459b7553a956fa2.zip
gcc-e5821d3f62b5bf532db1be661459b7553a956fa2.tar.gz
gcc-e5821d3f62b5bf532db1be661459b7553a956fa2.tar.bz2
sphinx: support installation if sphinx-build is missing
gcc/ChangeLog: * Makefile.in: Support installation if sphinx-build is missing. gcc/ada/ChangeLog: * gcc-interface/Make-lang.in: Support installation if sphinx-build is missing. gcc/cp/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing. gcc/d/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing. gcc/fortran/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing. gcc/go/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing. Support installation if sphinx-build is missing. gcc/jit/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing.
Diffstat (limited to 'gcc/fortran')
-rw-r--r--gcc/fortran/Make-lang.in10
1 files changed, 3 insertions, 7 deletions
diff --git a/gcc/fortran/Make-lang.in b/gcc/fortran/Make-lang.in
index dc2006d..48acbed 100644
--- a/gcc/fortran/Make-lang.in
+++ b/gcc/fortran/Make-lang.in
@@ -227,16 +227,12 @@ fortran.install-plugin:
fortran.install-info: $(DESTDIR)$(infodir)/gfortran.info
$(DESTDIR)$(infodir)/gfortran.info: doc/gfortran/info/texinfo/gfortran.info installdirs
- -rm -f $@
- -$(INSTALL_DATA) $< $@
+ -if [ -f $< ]; then rm -f $@; $(INSTALL_DATA) $< $@; fi
fortran.install-man: $(DESTDIR)$(man1dir)/$(GFORTRAN_INSTALL_NAME)$(man1ext)
-$(DESTDIR)$(man1dir)/$(GFORTRAN_INSTALL_NAME)$(man1ext): doc/gfortran/man/man/gfortran.1 \
- installdirs
- -rm -f $@
- -$(INSTALL_DATA) $< $@
- -chmod a-x $@
+$(DESTDIR)$(man1dir)/$(GFORTRAN_INSTALL_NAME)$(man1ext): doc/gfortran/man/man/gfortran.1 installdirs
+ -if [ -f $< ]; then rm -f $@; $(INSTALL_DATA) $< $@; chmod a-x $@; fi
fortran.uninstall:
if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \