Always use `install -d' to make sure destination directory exists & has

correct ownership and permissions.
This commit is contained in:
jtc 1993-10-01 00:35:19 +00:00
parent 28d14a325c
commit 3751e964dc
2 changed files with 4 additions and 18 deletions

View File

@ -1,17 +1,10 @@
# from: @(#)Makefile 4.8 (Berkeley) 5/11/90
# $Id: Makefile,v 1.3 1993/07/31 15:25:25 mycroft Exp $
# $Id: Makefile,v 1.4 1993/10/01 00:35:19 jtc Exp $
PROG= calendar
beforeinstall:
@if [ ! -d ${DESTDIR}/usr/share/calendar ]; then \
/bin/rm -f ${DESTDIR}/usr/share/calendar ; \
mkdir -p ${DESTDIR}/usr/share/calendar ; \
chown root.wheel ${DESTDIR}/usr/share/calendar ; \
chmod 755 ${DESTDIR}/usr/share/calendar ; \
else \
true ; \
fi
@install -d -o root -g wheel -m 755 ${DESTDIR}/usr/share/calendar
install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/calendars/calendar.* ${DESTDIR}/usr/share/calendar

View File

@ -1,5 +1,5 @@
# from: @(#)Makefile 5.17 (Berkeley) 5/11/90
# $Id: Makefile,v 1.5 1993/08/23 05:02:37 cgd Exp $
# $Id: Makefile,v 1.6 1993/10/01 00:38:38 jtc Exp $
PROG= gprof
SRCS= gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
@ -7,14 +7,7 @@ SRCS= gprof.c arcs.c dfn.c lookup.c ${MACHINE}.c hertz.c \
CFLAGS+=-I${.CURDIR}/../../lib/csu/${MACHINE}
beforeinstall:
@if [ ! -d ${DESTDIR}/usr/share/misc ]; then \
/bin/rm -f ${DESTDIR}/usr/share/misc ; \
mkdir -p ${DESTDIR}/usr/share/misc ; \
chown root.wheel ${DESTDIR}/usr/share/misc ; \
chmod 755 ${DESTDIR}/usr/share/misc ; \
else \
true ; \
fi
@install -d -o root -g wheel -m 755 ${DESTDIR}/usr/share/misc
install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
${.CURDIR}/gprof.flat ${.CURDIR}/gprof.callg \
${DESTDIR}/usr/share/misc