NetBSD/share/mk/bsd.inc.mk

29 lines
756 B
Makefile
Raw Normal View History

# $NetBSD: bsd.inc.mk,v 1.19 2001/10/31 21:15:41 tv Exp $
1997-05-07 00:54:31 +04:00
.PHONY: incinstall
includes: ${INCS} incinstall
1997-05-07 19:53:28 +04:00
.if defined(INCS)
incinstall:: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
.PRECIOUS: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
.if !defined(UPDATE)
.PHONY: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
.endif
2000-06-06 13:53:29 +04:00
__incinstall: .USE
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
(echo "${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -c \
-o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} \
${.TARGET}" && \
${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -c -o ${BINOWN} \
-g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
2000-06-06 13:53:29 +04:00
.for I in ${INCS:O:u}
${DESTDIR}${INCSDIR}/$I: $I __incinstall
.endfor
1997-05-07 19:53:28 +04:00
.endif
.if !target(incinstall)
incinstall::
.endif