From e5821d3f62b5bf532db1be661459b7553a956fa2 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 8 Nov 2022 11:06:26 +0100 Subject: 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. --- gcc/go/Make-lang.in | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'gcc/go') diff --git a/gcc/go/Make-lang.in b/gcc/go/Make-lang.in index b1b1b5f..e1818de 100644 --- a/gcc/go/Make-lang.in +++ b/gcc/go/Make-lang.in @@ -155,8 +155,7 @@ go.install-plugin: go.install-info: $(DESTDIR)$(infodir)/gccgo.info $(DESTDIR)$(infodir)/gccgo.info: doc/gccgo/info/texinfo/gccgo.info installdirs - -rm -f $@ - -$(INSTALL_DATA) $< $@ + -if [ -f $< ]; then rm -f $@; $(INSTALL_DATA) $< $@; fi go.install-pdf: doc/gccgo.pdf @$(NORMAL_INSTALL) @@ -188,9 +187,7 @@ go.install-html: $(build_htmldir)/go go.install-man: $(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext) $(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext): doc/gccgo/man/man/gccgo.1 installdirs - -rm -f $@ - -$(INSTALL_DATA) $< $@ - -chmod a-x $@ + -if [ -f $< ]; then rm -f $@; $(INSTALL_DATA) $< $@; chmod a-x $@; fi go.uninstall: rm -rf $(DESTDIR)$(bindir)/$(GCCGO_INSTALL_NAME)$(exeext) -- cgit v1.1