diff options
author | Richard Stallman <rms@gnu.org> | 1992-11-02 21:00:46 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-11-02 21:00:46 +0000 |
commit | 19b9f82ec75021861cdb099291513c40894d3f8d (patch) | |
tree | e702fe2bf890eacca7e775f9c2d8b5bbdbacbef8 | |
parent | 3d0373924d9bf3e529a57e320b363ff201f66bf1 (diff) | |
download | gcc-19b9f82ec75021861cdb099291513c40894d3f8d.zip gcc-19b9f82ec75021861cdb099291513c40894d3f8d.tar.gz gcc-19b9f82ec75021861cdb099291513c40894d3f8d.tar.bz2 |
(install-cross-tools): Delete old symlink before making new one.
From-SVN: r2676
-rw-r--r-- | gcc/Makefile.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in index 1e1226e..01992a7 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1386,6 +1386,7 @@ install-cross-tools: install-dir if [ -f $(libsubdir)/$$file ] ; \ then true; \ else \ + rm -rf $(libsubdir)/$$file; \ $(SYMLINK) $(tooldir)/bin/$$file $(libsubdir)/$$file \ || (echo "#!/bin/sh"; echo $(tooldir)/bin/$$file "$$@") > $(libsubdir)/$$file; \ fi; \ @@ -1396,6 +1397,7 @@ install-cross-tools: install-dir if [ -f $(libsubdir)/`basename $$file` ] ; \ then true; \ else \ + rm -rf $(libsubdir)/`basename $$file`; \ $(SYMLINK) $$file $(libsubdir)/`basename $$file` \ || $(INSTALL_DATA) $$file $(libsubdir)/`basename $$file`; \ fi; \ @@ -1403,6 +1405,7 @@ install-cross-tools: install-dir fi; \ done; \ if [ -d $(tooldir)/include/. ] ; then \ + rm -rf $(libsubdir)/sys-include; \ $(SYMLINK) $(tooldir)/include $(libsubdir)/sys-include \ || (if [ -d $(libsubdir)/sys-include ] ; then true ; else mkdir $(libsubdir)/sys-include ; fi; \ (cd $(tooldir)/include; tar cf - .) | (cd $(libsubdir)/sys-include; tar xpf -)); \ |