Use preserve flag in install.
This commit is contained in:
parent
e30046b37d
commit
ddb60058ff
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.files.mk,v 1.5 1997/05/09 13:25:49 mycroft Exp $
|
||||
# $NetBSD: bsd.files.mk,v 1.6 1998/09/28 08:13:37 christos Exp $
|
||||
|
||||
.PHONY: filesinstall
|
||||
realinstall: filesinstall
|
||||
|
@ -29,7 +29,7 @@ ${DESTDIR}${FILESDIR_${F}}/${FILESNAME_${F}}: .MADE
|
|||
|
||||
.PRECIOUS: ${DESTDIR}${FILESDIR_${F}}/${FILESNAME_${F}}
|
||||
${DESTDIR}${FILESDIR_${F}}/${FILESNAME_${F}}: ${F}
|
||||
${INSTALL} ${COPY} -o ${FILESOWN_${F}} -g ${FILESGRP_${F}} \
|
||||
${INSTALL} ${PRESERVE} ${COPY} -o ${FILESOWN_${F}} -g ${FILESGRP_${F}} \
|
||||
-m ${FILESMODE_${F}} ${.ALLSRC} ${.TARGET}
|
||||
.endfor
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.kmod.mk,v 1.27 1998/08/09 14:46:19 lukem Exp $
|
||||
# $NetBSD: bsd.kmod.mk,v 1.28 1998/09/28 08:13:37 christos Exp $
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
|
@ -68,8 +68,8 @@ ${DESTDIR}${KMODDIR}/${PROG}: .MADE
|
|||
|
||||
.PRECIOUS: ${DESTDIR}${KMODDIR}/${PROG}
|
||||
${DESTDIR}${KMODDIR}/${PROG}: ${PROG}
|
||||
${INSTALL} ${COPY} -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
|
||||
${.ALLSRC} ${.TARGET}
|
||||
${INSTALL} ${PRESERVE} ${COPY} -o ${KMODOWN} -g ${KMODGRP} \
|
||||
-m ${KMODMODE} ${.ALLSRC} ${.TARGET}
|
||||
.endif
|
||||
|
||||
lint: ${LOBJS}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.lib.mk,v 1.139 1998/09/13 23:25:18 tv Exp $
|
||||
# $NetBSD: bsd.lib.mk,v 1.140 1998/09/28 08:13:38 christos Exp $
|
||||
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
|
||||
|
||||
.if !target(__initialized__)
|
||||
|
@ -200,8 +200,8 @@ __archivebuild: .USE
|
|||
${RANLIB} ${.TARGET}
|
||||
|
||||
__archiveinstall: .USE
|
||||
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 ${.ALLSRC} \
|
||||
${.TARGET}
|
||||
${INSTALL} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m 600 \
|
||||
${.ALLSRC} ${.TARGET}
|
||||
${RANLIB} -t ${.TARGET}
|
||||
chmod ${LIBMODE} ${.TARGET}
|
||||
|
||||
|
@ -316,8 +316,8 @@ ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: .MADE
|
|||
|
||||
.PRECIOUS: ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
||||
${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}: lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
|
||||
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${.ALLSRC} \
|
||||
${.TARGET}
|
||||
${INSTALL} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
||||
${.ALLSRC} ${.TARGET}
|
||||
.if (${OBJECT_FMT} == "ELF")
|
||||
rm -f ${DESTDIR}${LIBDIR}/lib${LIB}.so.${SHLIB_MAJOR}
|
||||
ln -s lib${LIB}.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
|
||||
|
@ -341,7 +341,7 @@ ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: .MADE
|
|||
|
||||
.PRECIOUS: ${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln
|
||||
${DESTDIR}${LINTLIBDIR}/llib-l${LIB}.ln: llib-l${LIB}.ln
|
||||
${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
||||
${INSTALL} ${PRESERVE} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
||||
${.ALLSRC} ${DESTDIR}${LINTLIBDIR}
|
||||
.endif
|
||||
.endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.man.mk,v 1.40 1998/09/27 16:31:11 lukem Exp $
|
||||
# $NetBSD: bsd.man.mk,v 1.41 1998/09/28 08:13:38 christos Exp $
|
||||
# @(#)bsd.man.mk 8.1 (Berkeley) 6/8/93
|
||||
|
||||
.if !target(__initialized__)
|
||||
|
@ -48,7 +48,8 @@ MANPAGES= ${MAN}
|
|||
CATPAGES= ${MANPAGES:C/(.*).([1-9])/\1.cat\2/}
|
||||
.endif
|
||||
|
||||
MINSTALL= ${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
|
||||
MINSTALL= ${INSTALL} ${PRESERVE} ${COPY} -o ${MANOWN} -g ${MANGRP} \
|
||||
-m ${MANMODE}
|
||||
|
||||
.if defined(MANZ)
|
||||
# chown and chmod are done afterward automatically
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.nls.mk,v 1.13 1998/09/27 17:16:38 lukem Exp $
|
||||
# $NetBSD: bsd.nls.mk,v 1.14 1998/09/28 08:13:38 christos Exp $
|
||||
|
||||
.if !target(__initialized__)
|
||||
__initialized__:
|
||||
|
@ -52,8 +52,8 @@ ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: .MADE
|
|||
.PRECIOUS: ${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat
|
||||
${DESTDIR}${NLSDIR}/${F:T:R}/${NLSNAME}.cat: ${F}
|
||||
${INSTALL} -d ${.TARGET:H}
|
||||
${INSTALL} ${COPY} -o ${NLSOWN} -g ${NLSGRP} -m ${NLSMODE} ${.ALLSRC} \
|
||||
${.TARGET}
|
||||
${INSTALL} ${PRESERVE} ${COPY} -o ${NLSOWN} -g ${NLSGRP} -m ${NLSMODE} \
|
||||
${.ALLSRC} ${.TARGET}
|
||||
.endfor
|
||||
.else
|
||||
cleannls:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.own.mk,v 1.88 1998/09/15 20:26:50 matthias Exp $
|
||||
# $NetBSD: bsd.own.mk,v 1.89 1998/09/28 08:13:39 christos Exp $
|
||||
|
||||
.if !defined(_BSD_OWN_MK_)
|
||||
_BSD_OWN_MK_=1
|
||||
|
@ -59,6 +59,7 @@ KMODOWN?= root
|
|||
KMODMODE?= ${NONBINMODE}
|
||||
|
||||
COPY?= -c
|
||||
PRESERVE?= -p
|
||||
STRIPFLAG?= -s
|
||||
|
||||
# Define SYS_INCLUDE to indicate whether you want symbolic links to the system
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.prog.mk,v 1.95 1998/09/10 00:40:33 ross Exp $
|
||||
# $NetBSD: bsd.prog.mk,v 1.96 1998/09/28 08:13:39 christos Exp $
|
||||
# @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
|
||||
|
||||
.if !target(__initialized__)
|
||||
|
@ -144,7 +144,7 @@ ${DESTDIR}${BINDIR}/${PROGNAME}: .MADE
|
|||
|
||||
.PRECIOUS: ${DESTDIR}${BINDIR}/${PROGNAME}
|
||||
${DESTDIR}${BINDIR}/${PROGNAME}: ${PROG}
|
||||
${INSTALL} ${COPY} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} \
|
||||
${INSTALL} ${PRESERVE} ${COPY} ${STRIPFLAG} -o ${BINOWN} -g ${BINGRP} \
|
||||
-m ${BINMODE} ${.ALLSRC} ${.TARGET}
|
||||
.endif
|
||||
|
||||
|
@ -178,8 +178,8 @@ ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}: .MADE
|
|||
|
||||
.PRECIOUS: ${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}
|
||||
${DESTDIR}${SCRIPTSDIR_${S}}/${SCRIPTSNAME_${S}}: ${S}
|
||||
${INSTALL} ${COPY} -o ${SCRIPTSOWN_${S}} -g ${SCRIPTSGRP_${S}} \
|
||||
-m ${SCRIPTSMODE_${S}} ${.ALLSRC} ${.TARGET}
|
||||
${INSTALL} ${PRESERVE} ${COPY} -o ${SCRIPTSOWN_${S}} -g \
|
||||
${SCRIPTSGRP_${S}} -m ${SCRIPTSMODE_${S}} ${.ALLSRC} ${.TARGET}
|
||||
.endfor
|
||||
.endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue