From f4a0f42d8ae83b302641b74c3dea1912964e0145 Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Thu, 4 Jun 1992 19:10:49 +0000 Subject: add real install, and some more normal paths. --- gprof/Makefile.in | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) (limited to 'gprof') diff --git a/gprof/Makefile.in b/gprof/Makefile.in index 2b9ce4c..c02f34b 100644 --- a/gprof/Makefile.in +++ b/gprof/Makefile.in @@ -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) -- cgit v1.1