From: Mark Eichin Date: Thu, 4 Jun 1992 19:10:49 +0000 (+0000) Subject: add real install, and some more normal paths. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4a0f42d8ae83b302641b74c3dea1912964e0145;p=binutils-gdb.git add real install, and some more normal paths. --- diff --git a/gprof/Makefile.in b/gprof/Makefile.in index 2b9ce4c8f17..c02f34bfe6b 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)