add real install, and some more normal paths.
authorMark Eichin <eichin@cygnus>
Thu, 4 Jun 1992 19:10:49 +0000 (19:10 +0000)
committerMark Eichin <eichin@cygnus>
Thu, 4 Jun 1992 19:10:49 +0000 (19:10 +0000)
gprof/Makefile.in

index 2b9ce4c8f17294142b26ad2b78650fcd92de5785..c02f34bfe6b8b114fa01c98dd8947f0d1cdb8fc4 100644 (file)
@@ -2,6 +2,20 @@
 
 srcdir = .
 
+prefix = /usr/local
+
+program_prefix =
+exec_prefix = $(prefix)
+bindir = $(exec_prefix)/bin
+libdir = $(exec_prefix)/lib
+tooldir = $(libdir)
+
+datadir = $(prefix)/lib
+
+INSTALL = install -c
+INSTALL_PROGRAM = $(INSTALL)
+INSTALL_DATA = $(INSTALL)
+
 #### host and target dependent Makefile fragments come in here.
 ###
 
@@ -22,10 +36,10 @@ all:        ${PROG}
 .PHONY: check
 check:
 
-beforeinstall:
-       install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
-           ${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \
-           ${DESTDIR}/usr/share/misc
+install: all
+       $(INSTALL_DATA) ${srcdir}/gprof.flat ${DESTDIR}$(datadir)
+       $(INSTALL_DATA) ${srcdir}/gprof.callg ${DESTDIR}$(datadir)
+       $(INSTALL_PROGRAM) $(PROG) ${DESTDIR}$(bindir)
 
 $(PROG):       $(OBJS)
        $(CC) $(CFLAGS) $(OBJS) -o $(PROG) $(LIBS)