* Makefile.in: Install correctly.
authorSteve Chamberlain <sac@cygnus>
Tue, 6 Jul 1993 17:12:20 +0000 (17:12 +0000)
committerSteve Chamberlain <sac@cygnus>
Tue, 6 Jul 1993 17:12:20 +0000 (17:12 +0000)
gprof/ChangeLog
gprof/Makefile.in

index 293912ce080a9d71674dcd8e482ab99852f8f194..fbc21779f97fa0a8d89b12a3e1697889b71b8805 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jul  6 10:11:56 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
+
+       * Makefile.in: Install correctly.
+
 Thu Jun 24 14:43:22 1993  David J. Mackenzie  (djm@thepub.cygnus.com)
 
        * gprof.c (main): Get whoami from argv, instead of hardcoding.
index 7cacf973c7e709d75fd7a63a027dc8160e4481ca..f1f5038e44db6d91409f5f98ae1b1b7a803ea62d 100644 (file)
@@ -6,6 +6,7 @@ prefix  = /usr/local
 
 program_prefix         =
 exec_prefix    = $(prefix)
+program_transform_name =
 bindir         = $(exec_prefix)/bin
 libdir         = $(exec_prefix)/lib
 tooldir = $(libdir)
@@ -15,9 +16,11 @@ man1dir = $(mandir)/man1
 infodir        = $(prefix)/info
 datadir = $(prefix)/lib
 
-INSTALL        = install -c
+INSTALL = `cd $(srcdir); pwd`/../install.sh -c
 INSTALL_PROGRAM = $(INSTALL)
-INSTALL_DATA   = $(INSTALL)
+INSTALL_DATA = $(INSTALL)
+INSTALL_XFORM = $(INSTALL) -t='$(program_transform_name)'
+INSTALL_XFORM1 = $(INSTALL_XFORM) -b=.1
 MAKEINFO       = makeinfo
 TEX            = tex
 TEXINDEX       = texindex
@@ -78,8 +81,13 @@ install-info:
        done
 
 install: 
-       $(INSTALL_PROGRAM) gprof $(bindir)/gprof
-       $(INSTALL_DATA) $(srcdir)/gprof.1 $(man1dir)/gprof.1
+       $(INSTALL_XFORM) gprof $(bindir)/gprof
+       $(INSTALL_XFORM1) $(srcdir)/gprof.1 $(man1dir)/gprof.1
+       -n=`t='$(program_transform_name)'; echo gprof | sed -e "" $$t`; \
+         rm -f $(tooldir)/bin/gprof; \
+         ln $(bindir)/$$n $(tooldir)/bin/gprof \
+          || $(INSTALL_PROGRAM) gprof $(tooldir)/bin/gprof; 
+
 
 gprof: $(OBJS)
        $(CC) -o $(PROG) $(LDFLAGS) $(OBJS) $(LIBS)