]> gcc.gnu.org Git - gcc.git/commitdiff
(install-cross-tools): Delete old symlink before making new one.
authorRichard Stallman <rms@gnu.org>
Mon, 2 Nov 1992 21:00:46 +0000 (21:00 +0000)
committerRichard Stallman <rms@gnu.org>
Mon, 2 Nov 1992 21:00:46 +0000 (21:00 +0000)
From-SVN: r2676

gcc/Makefile.in

index 1e1226efd2ac3281661b0d2ab461314684305429..01992a7826203b89236675f13d706dff01df1db5 100644 (file)
@@ -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 -)); \
This page took 0.067828 seconds and 5 git commands to generate.