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

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

gdb/ChangeLog
gdb/Makefile.in

index 38791acb9fbc9112eebf1f66b68801eecae11722..8402d5d24127c6d6c04020fe1149437fa2d670ab 100644 (file)
@@ -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}
index 94557cb835b5ed99bb0fd7adb5c604ce1211b792..0ec56eb34ae7e9655476b879478da8fbdccbd9f5 100644 (file)
@@ -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)