Fix install.
authorSteve Chamberlain <sac@cygnus>
Fri, 18 Jun 1993 01:30:34 +0000 (01:30 +0000)
committerSteve Chamberlain <sac@cygnus>
Fri, 18 Jun 1993 01:30:34 +0000 (01:30 +0000)
ld/Makefile.in

index 59391a40123181369a92308b88b0f5c86edb8ecd..1f8b0c378438207664bc7d223c66a7c235dbdd17 100644 (file)
@@ -520,8 +520,10 @@ objdump:objdump.c
 install: 
        $(INSTALL_XFORM) ld.new $(bindir)/ld
        $(INSTALL_XFORM1) $(srcdir)/ld.1 $(man1dir)/ld.1
-       cd emulations; for f in *; do $(INSTALL_DATA) $$f $(scriptdir)/$$f; done
-       -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
+       for f in emulations/*; do \
+         $(INSTALL_DATA) $$f $(scriptdir)/`basename $$f` ; \
+       done
+       -n=`t=$(program_transform_name); echo ld | sed -e "" $$t`; \
          rm -f $(tooldir)/bin/ld; \
          ln $(bindir)/$$n $(tooldir)/bin/ld \
           || $(INSTALL_PROGRAM) ld.new $(tooldir)/bin/ld; \