Always use `install -d' to make sure destination directory exists & has
correct ownership and permissions.
This commit is contained in:
parent
a3b5070f26
commit
4180d478c3
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile 5.1.1.1 (Berkeley) 5/7/91
|
||||
# $Id: Makefile,v 1.5 1993/07/31 15:33:20 mycroft Exp $
|
||||
# $Id: Makefile,v 1.6 1993/09/30 23:31:09 jtc Exp $
|
||||
|
||||
# Missing: 00.contents 01.Clang 02.f77 03.f77io 05.as 09.lint 10.adb 11.dbx
|
||||
# 12.make 15.yacc 16.lex 17.m4
|
||||
|
@ -12,14 +12,9 @@ SUBDIR= 06.sysman 07.ipctut \
|
|||
08.ipc 13.rcs 14.sccs
|
||||
|
||||
beforeinstall:
|
||||
@if [ ! -d ${DESTDIR}${BINDIR} ]; then \
|
||||
/bin/rm -f ${DESTDIR}${BINDIR} ; \
|
||||
mkdir -p ${DESTDIR}${BINDIR} ; \
|
||||
chown root.wheel ${DESTDIR}${BINDIR} ; \
|
||||
chmod 755 ${DESTDIR}${BINDIR} ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
@install -d -o root -g wheel -m 755 ${DESTDIR}${BINDIR}
|
||||
|
||||
realinstall:
|
||||
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
|
||||
${DESTDIR}${BINDIR}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile 5.2.1.2 (Berkeley) 5/7/91
|
||||
# $Id: Makefile,v 1.3 1993/07/31 15:32:55 mycroft Exp $
|
||||
# $Id: Makefile,v 1.4 1993/09/30 23:31:17 jtc Exp $
|
||||
|
||||
# Missing: 03.kdebug 09.uucpimpl 12.uchanges 13.kchanges 17.security
|
||||
# 18.password 19.porttour 21.uucpnet
|
||||
|
@ -17,14 +17,9 @@ SUBDIR+=01.setup
|
|||
.endif
|
||||
|
||||
beforeinstall:
|
||||
@if [ ! -d ${DESTDIR}${BINDIR} ]; then \
|
||||
/bin/rm -f ${DESTDIR}${BINDIR} ; \
|
||||
mkdir -p ${DESTDIR}${BINDIR} ; \
|
||||
chown root.wheel ${DESTDIR}${BINDIR} ; \
|
||||
chmod 755 ${DESTDIR}${BINDIR} ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
@install -d -o root -g wheel -m 755 ${DESTDIR}${BINDIR}
|
||||
|
||||
realinstall:
|
||||
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
|
||||
${DESTDIR}${BINDIR}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile 5.1.1.1 (Berkeley) 5/7/91
|
||||
# $Id: Makefile,v 1.4 1993/07/31 15:29:28 mycroft Exp $
|
||||
# $Id: Makefile,v 1.5 1993/09/30 23:31:23 jtc Exp $
|
||||
|
||||
#Missing: 01.begin 02.learn 03.shell 05.dc 06.bc 08.mh 12.edtut 13.edadv
|
||||
# 17.jove 18.sed 19.awk 20.msmacros 24.troff 25.trofftut 26.eqn
|
||||
|
@ -16,14 +16,9 @@ SUBDIR= 04.csh 07.Mail \
|
|||
33.rogue 34.trek
|
||||
|
||||
beforeinstall:
|
||||
@if [ ! -d ${DESTDIR}${BINDIR} ]; then \
|
||||
/bin/rm -f ${DESTDIR}${BINDIR} ; \
|
||||
mkdir -p ${DESTDIR}${BINDIR} ; \
|
||||
chown root.wheel ${DESTDIR}${BINDIR} ; \
|
||||
chmod 755 ${DESTDIR}${BINDIR} ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
@install -d -o root -g wheel -m 755 ${DESTDIR}${BINDIR}
|
||||
|
||||
realinstall:
|
||||
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
|
||||
${DESTDIR}${BINDIR}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# $Id: Makefile,v 1.3 1993/07/09 04:27:33 mycroft Exp $
|
||||
# $Id: Makefile,v 1.4 1993/09/30 23:31:28 jtc Exp $
|
||||
#
|
||||
|
||||
FILES= README syscall vfs misc
|
||||
|
@ -7,15 +7,10 @@ NOOBJ= noobj
|
|||
|
||||
all clean cleandir depend lint tags:
|
||||
|
||||
install:
|
||||
@@if [ ! -d ${DESTDIR}${BINDIR}/lkm ]; then \
|
||||
/bin/rm -f ${DESTDIR}${BINDIR}/lkm ; \
|
||||
mkdir -p ${DESTDIR}${BINDIR}/lkm ; \
|
||||
chown root.wheel ${DESTDIR}${BINDIR}/lkm ; \
|
||||
chmod 755 ${DESTDIR}${BINDIR}/lkm ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
beforeinstall:
|
||||
@install -d root.wheel ${DESTDIR}${BINDIR}/lkm
|
||||
|
||||
realinstall:
|
||||
# XXX:
|
||||
# Must do these separately if we want to preserve mod times on directories
|
||||
# because -prune doesn't work correctly with -depth.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile 5.13 (Berkeley) 5/7/91
|
||||
# $Id: Makefile,v 1.3 1993/07/31 15:27:42 mycroft Exp $
|
||||
# $Id: Makefile,v 1.4 1993/09/30 23:31:36 jtc Exp $
|
||||
|
||||
FILES= airport ascii birthtoken eqnchar inter.phone man.template \
|
||||
mdoc.template na.phone operator zipcodes
|
||||
|
@ -7,15 +7,10 @@ NOOBJ= noobj
|
|||
|
||||
all clean cleandir depend lint tags:
|
||||
|
||||
install:
|
||||
@if [ ! -d ${DESTDIR}${BINDIR}/misc ]; then \
|
||||
/bin/rm -f ${DESTDIR}${BINDIR}/misc ; \
|
||||
mkdir -p ${DESTDIR}${BINDIR}/misc ; \
|
||||
chown root.wheel ${DESTDIR}${BINDIR}/misc ; \
|
||||
chmod 755 ${DESTDIR}${BINDIR}/misc ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
beforeinstall:
|
||||
@install -d -o root -g wheel -m 755 ${DESTDIR}${BINDIR}/misc
|
||||
|
||||
realinstall:
|
||||
cd ${.CURDIR}; install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
|
||||
${DESTDIR}${BINDIR}/misc
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile 5.3 (Berkeley) 10/22/90
|
||||
# $Id: Makefile,v 1.3 1993/07/31 15:27:24 mycroft Exp $
|
||||
# $Id: Makefile,v 1.4 1993/09/30 23:31:39 jtc Exp $
|
||||
|
||||
FILES= 3101 9837 aa aed512 beehive diablo dtc382 hp700-wy ibm3101 std \
|
||||
stdcrt tandem653 teleray vt100 wyse-adds xerox1720 xerox1730 \
|
||||
|
@ -8,15 +8,10 @@ NOOBJ= noobj
|
|||
|
||||
all clean cleandir depend lint tags:
|
||||
|
||||
install:
|
||||
@if [ ! -d ${DESTDIR}${BINDIR}/tabset ]; then \
|
||||
/bin/rm -f ${DESTDIR}${BINDIR}/tabset ; \
|
||||
mkdir -p ${DESTDIR}${BINDIR}/tabset ; \
|
||||
chown root.wheel ${DESTDIR}${BINDIR}/tabset ; \
|
||||
chmod 755 ${DESTDIR}${BINDIR}/tabset ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
beforeinstall:
|
||||
@install -o root -g wheel -m 755 ${DESTDIR}${BINDIR}/tabset
|
||||
|
||||
realinstall:
|
||||
install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FILES} \
|
||||
${DESTDIR}${BINDIR}/tabset
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# from: @(#)Makefile 5.14 (Berkeley) 9/15/92
|
||||
# $Id: Makefile,v 1.10 1993/07/31 15:27:18 mycroft Exp $
|
||||
# $Id: Makefile,v 1.11 1993/09/30 23:31:43 jtc Exp $
|
||||
|
||||
# reorder gives an editor command for most common terminals
|
||||
# (in reverse order from n'th to 1'st most commonly used)
|
||||
|
@ -18,14 +18,9 @@ termcap.db: termcap
|
|||
cap_mkdb termcap
|
||||
|
||||
beforeinstall:
|
||||
@if [ ! -d ${DESTDIR}${BINDIR}/misc ]; then \
|
||||
/bin/rm -f ${DESTDIR}${BINDIR}/misc ; \
|
||||
mkdir -p ${DESTDIR}${BINDIR}/misc ; \
|
||||
chown root.wheel ${DESTDIR}${BINDIR}/misc ; \
|
||||
chmod 755 ${DESTDIR}${BINDIR}/misc ; \
|
||||
else \
|
||||
true ; \
|
||||
fi
|
||||
@install -d -o root -g wheel -m 755 ${DESTDIR}${BINDIR}/misc
|
||||
|
||||
realinstall:
|
||||
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap \
|
||||
${DESTDIR}${BINDIR}/misc
|
||||
install ${COPY} -o ${BINOWN} -g ${BINGRP} -m 444 termcap.db \
|
||||
|
|
Loading…
Reference in New Issue