diff options
Diffstat (limited to 'gcc/go/Make-lang.in')
-rw-r--r-- | gcc/go/Make-lang.in | 7 |
1 files changed, 2 insertions, 5 deletions
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) |