aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1992-09-01 01:16:25 +0000
committerIan Lance Taylor <ian@airs.com>1992-09-01 01:16:25 +0000
commitb68b44fac8282ed984eae218c338c849a82eac3a (patch)
tree08b8fcc4f5ed691bf1e34833788fc88bf99e9bf1
parent7e10f53ccf9100e8191e7cc18af0c165f7973ea6 (diff)
downloadgdb-b68b44fac8282ed984eae218c338c849a82eac3a.zip
gdb-b68b44fac8282ed984eae218c338c849a82eac3a.tar.gz
gdb-b68b44fac8282ed984eae218c338c849a82eac3a.tar.bz2
Brought forward from p3:
Sun Aug 30 21:32:17 1992 Ian Lance Taylor (ian@cygnus.com) * Makefile.in: map "gdb" through program_transform_name when installing.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/Makefile.in7
2 files changed, 9 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 38791ac..8402d5d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -29,6 +29,11 @@ Mon Aug 31 13:47:45 1992 Fred Fish (fnf@cygnus.com)
* gdbtypes.h (TYPE_CODE_CLASS): Add type for C++ classes, but
treat as alias for TYPE_CODE_STRUCT for now.
+Sun Aug 30 21:32:17 1992 Ian Lance Taylor (ian@cygnus.com)
+
+ * Makefile.in: map "gdb" through program_transform_name when
+ installing.
+
Sun Aug 30 21:18:51 1992 Fred Fish (fnf@cygnus.com)
* {i386-tdep.c, m68k-tdep.c, mips-tdep.c, sparc-tdep.c}
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 94557cb..0ec56eb 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -18,7 +18,7 @@
prefix = /usr/local
-program_prefix =
+program_transform_name =
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)/lib
@@ -330,8 +330,9 @@ install: gdb
-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
- $(INSTALL_PROGRAM) gdb $(bindir)/$(program_prefix)gdb
- $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$(program_prefix)gdb.1
+ -n=`t='$(program_transform_name)'; echo gdb | sed -e "" $$t`; \
+ $(INSTALL_PROGRAM) gdb $(bindir)/$$n; \
+ $(INSTALL_DATA) $(srcdir)/gdb.1 $(man1dir)/$$n.1
$(M_INSTALL)
$(MAKE) subdir_do DO=install "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS)