Do not give error message if dlltool was not built
authorMichael Meissner <gnu@the-meissners.org>
Fri, 13 Oct 1995 20:11:35 +0000 (20:11 +0000)
committerMichael Meissner <gnu@the-meissners.org>
Fri, 13 Oct 1995 20:11:35 +0000 (20:11 +0000)
binutils/Makefile.in

index c9889521382b0b5d074b1b671b439c6aeb82d914..b14b78d8cfd438ecb07589d5f11306f1575f5edb 100644 (file)
@@ -576,11 +576,13 @@ install: all $(DEMANGLER_PROG).1
        -if [ -d $(tooldir) ]; then \
          if [ -d $(tooldir)/bin ]; then true; else mkdir $(tooldir)/bin; fi; \
          for i in $(TOOL_PROGS) ; do \
-           j=`echo $$i | sed -e 's/.new//'`; \
-           rm -f $(tooldir)/bin/$$j; \
-           k=`echo $$j | sed '$(program_transform_name)'`; \
-           ln $(bindir)/$$k $(tooldir)/bin/$$j >/dev/null 2>/dev/null \
-            || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j; \
+           if [ -f $i ]; then \
+             j=`echo $$i | sed -e 's/.new//'`; \
+             rm -f $(tooldir)/bin/$$j; \
+             k=`echo $$j | sed '$(program_transform_name)'`; \
+             ln $(bindir)/$$k $(tooldir)/bin/$$j >/dev/null 2>/dev/null \
+               || $(INSTALL_PROGRAM) $$i $(tooldir)/bin/$$j; \
+           fi; \
          done; \
         else true; fi