aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-09-01 01:17:01 +0000
committerIan Lance Taylor <ian@airs.com>1992-09-01 01:17:01 +0000
commit0bb95ac84a129dcbbc4f0c459847370581790fe5 (patch)
tree32f61f791f8c3c23a8645b7f45acbbf994faaa3b /ld
parentb68b44fac8282ed984eae218c338c849a82eac3a (diff)
downloadgdb-0bb95ac84a129dcbbc4f0c459847370581790fe5.zip
gdb-0bb95ac84a129dcbbc4f0c459847370581790fe5.tar.gz
gdb-0bb95ac84a129dcbbc4f0c459847370581790fe5.tar.bz2
Brought forward from p3:
Sun Aug 30 21:38:53 1992 Ian Lance Taylor (ian@cygnus.com) * Makefile.in: map "ld" through program_transform_name when installing.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/Makefile.in14
2 files changed, 11 insertions, 8 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index dd17202..96365d1 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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.
diff --git a/ld/Makefile.in b/ld/Makefile.in
index fa0d4e5..8f914b6 100644
--- a/ld/Makefile.in
+++ b/ld/Makefile.in
@@ -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@/[^/]*$$@@'`; \