Brought forward from p3:
authorIan Lance Taylor <ian@airs.com>
Tue, 1 Sep 1992 01:17:01 +0000 (01:17 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 1 Sep 1992 01:17:01 +0000 (01:17 +0000)
Sun Aug 30 21:38:53 1992  Ian Lance Taylor  (ian@cygnus.com)

* Makefile.in: map "ld" through program_transform_name when
installing.

ld/ChangeLog
ld/Makefile.in

index dd172028ea18a77e692c4c186d4237db596b1f03..96365d1d99c3e618ba0d41cec298b7f4bef27776 100644 (file)
@@ -1,3 +1,8 @@
+Sun Aug 30 21:38:53 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * Makefile.in: map "ld" through program_transform_name when
+       installing.
+
 Sun Aug 30 18:12:13 1992  Per Bothner  (bothner@rtl.cygnus.com)
 
        * cplus-dem.c:  Removed.  Use the version in libiberty now.
index fa0d4e5e698580e230cf41f64c8438dd4917d6ed..8f914b67229539365f8d0ab67bc7d6b452f88c8d 100644 (file)
@@ -22,8 +22,7 @@ srcdir = .
 
 prefix = /usr/local
 
-program_prefix =
-program_suffix =
+program_transform_name =
 exec_prefix = $(prefix)
 bindir = $(exec_prefix)/bin
 libdir = $(exec_prefix)/lib
@@ -441,12 +440,11 @@ install: $(LD_PROG)
        -parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
        if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
        -if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
-       -rm -f $(bindir)/$(program_prefix)ld$(program_suffix)
-       $(INSTALL_PROGRAM) ld.new $(bindir)/$(program_prefix)ld$(program_suffix)
-       -rm -f $(tooldir)/ld
-       if [ -d $(tooldir) ]; then $(INSTALL_PROGRAM) ld.new $(tooldir)/ld; else true; fi
-       -rm -f $(man1dir)/$(program_prefix)ld$(program_suffix).1
-       $(INSTALL_DATA) $(srcdir)/ld.1 $(man1dir)/$(program_prefix)ld$(program_suffix).1
+       -n=`t='$(program_transform_name)'; echo ld | sed -e "" $$t`; \
+       rm -f $(bindir)/$$n; \
+       $(INSTALL_PROGRAM) ld.new $(bindir)/$$n; \
+       $(INSTALL_DATA) $(srcdir)/ld.1 $(man1dir)/$$n.1
+       -if [ -d $(tooldir) ]; then rm -f $(tooldir)/ld; $(INSTALL_PROGRAM) ld.new $(tooldir)/ld; else true; fi
 
 install-info: info
        -parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \