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

and permissions.
This commit is contained in:
jtc 1993-09-30 23:06:37 +00:00
parent 6de108a78c
commit a3b5070f26

View File

@ -1,20 +1,15 @@
# from: @(#)Makefile 5.3 (Berkeley) 6/8/90
# $Id: Makefile,v 1.3 1993/07/31 15:27:30 mycroft Exp $
# $Id: Makefile,v 1.4 1993/09/30 23:06:37 jtc Exp $
FILES= dot.cshrc dot.login dot.mailrc dot.profile dot.rhosts
NOOBJ= noobj
all clean cleandir depend lint tags:
install:
@if [ ! -d ${DESTDIR}${BINDIR}/skel ]; then \
/bin/rm -f ${DESTDIR}${BINDIR}/skel ; \
mkdir -p ${DESTDIR}${BINDIR}/skel ; \
chown root.wheel ${DESTDIR}${BINDIR}/skel ; \
chmod 755 ${DESTDIR}${BINDIR}/skel ; \
else \
true ; \
fi
beforeinstall:
@install -d -o root -g wheel -m 755 ${DESTDIR}{BINDIR}/skel
realinstall:
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
${DESTDIR}${BINDIR}/skel