2001-05-08 03:19:51 +00:00
|
|
|
# $NetBSD: bsd.inc.mk,v 1.17 2001/05/08 03:19:52 sommerfeld Exp $
|
1997-05-06 20:54:31 +00:00
|
|
|
|
1997-05-31 21:21:13 +00:00
|
|
|
.PHONY: incinstall
|
|
|
|
includes: ${INCS} incinstall
|
1997-03-24 21:54:12 +00:00
|
|
|
|
1997-05-07 15:53:28 +00:00
|
|
|
.if defined(INCS)
|
2000-06-06 05:40:47 +00:00
|
|
|
incinstall:: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
|
2000-06-06 09:22:00 +00:00
|
|
|
.PRECIOUS: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
|
1997-06-03 16:00:30 +00:00
|
|
|
.if !defined(UPDATE)
|
2000-06-06 05:40:47 +00:00
|
|
|
.PHONY: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
|
1997-06-03 16:00:30 +00:00
|
|
|
.endif
|
2000-06-06 05:40:47 +00:00
|
|
|
|
2000-06-06 09:53:29 +00:00
|
|
|
__incinstall: .USE
|
1997-03-24 21:54:12 +00:00
|
|
|
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
|
1999-08-21 06:17:45 +00:00
|
|
|
(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 09:53:29 +00:00
|
|
|
|
2001-05-08 03:19:51 +00:00
|
|
|
.for I in ${INCS:O:u}
|
2000-06-06 09:53:29 +00:00
|
|
|
${DESTDIR}${INCSDIR}/$I: $I __incinstall
|
1997-03-24 21:54:12 +00:00
|
|
|
.endfor
|
1997-05-07 15:53:28 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !target(incinstall)
|
|
|
|
incinstall::
|
1997-03-24 21:54:12 +00:00
|
|
|
.endif
|