f16578a952
and the filesystem is full. Added ${RENAME} flag to install, which when set to -r installs on a temporary file and then renames to the final destination. ${RENAME} is currently set to nothing in bsd.own.mk, but one can turn it on in /etc/mk.conf.
26 lines
660 B
Makefile
26 lines
660 B
Makefile
# $NetBSD: bsd.inc.mk,v 1.12 1999/02/04 11:58:30 christos Exp $
|
|
|
|
.PHONY: incinstall
|
|
includes: ${INCS} incinstall
|
|
|
|
.if defined(INCS)
|
|
.for I in ${INCS}
|
|
incinstall:: ${DESTDIR}${INCSDIR}/$I
|
|
|
|
.PRECIOUS: ${DESTDIR}${INCSDIR}/$I
|
|
.if !defined(UPDATE)
|
|
.PHONY: ${DESTDIR}${INCSDIR}/$I
|
|
.endif
|
|
${DESTDIR}${INCSDIR}/$I: $I
|
|
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
|
|
(echo "${INSTALL} ${RENAME} ${PRESERVE} -c -o ${BINOWN} \
|
|
-g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}" && \
|
|
${INSTALL} ${RENAME} ${PRESERVE} -c -o ${BINOWN} -g ${BINGRP} \
|
|
-m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
|
|
.endfor
|
|
.endif
|
|
|
|
.if !target(incinstall)
|
|
incinstall::
|
|
.endif
|