aboutsummaryrefslogtreecommitdiff
path: root/gprof/Makefile.in
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-07-06 17:12:20 +0000
committerSteve Chamberlain <sac@cygnus>1993-07-06 17:12:20 +0000
commitb4a1e77be844f15c01c721f72b5106d07a503e18 (patch)
tree8ea68179c9482609c349928d123c5093e6500d56 /gprof/Makefile.in
parent9dea029fad811e5556c9aaff3b514d854b25880f (diff)
downloadgdb-b4a1e77be844f15c01c721f72b5106d07a503e18.zip
gdb-b4a1e77be844f15c01c721f72b5106d07a503e18.tar.gz
gdb-b4a1e77be844f15c01c721f72b5106d07a503e18.tar.bz2
* Makefile.in: Install correctly.
Diffstat (limited to 'gprof/Makefile.in')
-rw-r--r--gprof/Makefile.in16
1 files changed, 12 insertions, 4 deletions
diff --git a/gprof/Makefile.in b/gprof/Makefile.in
index 7cacf97..f1f5038 100644
--- a/gprof/Makefile.in
+++ b/gprof/Makefile.in
@@ -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)