1999-08-21 10:17:45 +04:00
|
|
|
# $NetBSD: bsd.inc.mk,v 1.13 1999/08/21 06:17:46 simonb Exp $
|
1997-05-07 00:54:31 +04:00
|
|
|
|
1997-06-01 01:21:13 +04:00
|
|
|
.PHONY: incinstall
|
|
|
|
includes: ${INCS} incinstall
|
1997-03-25 00:54:12 +03:00
|
|
|
|
1997-05-07 19:53:28 +04:00
|
|
|
.if defined(INCS)
|
1997-03-25 00:54:12 +03:00
|
|
|
.for I in ${INCS}
|
1997-06-01 01:21:13 +04:00
|
|
|
incinstall:: ${DESTDIR}${INCSDIR}/$I
|
1997-03-25 00:54:12 +03:00
|
|
|
|
1997-05-07 01:29:33 +04:00
|
|
|
.PRECIOUS: ${DESTDIR}${INCSDIR}/$I
|
1997-06-03 20:00:30 +04:00
|
|
|
.if !defined(UPDATE)
|
|
|
|
.PHONY: ${DESTDIR}${INCSDIR}/$I
|
|
|
|
.endif
|
1997-03-25 00:54:12 +03:00
|
|
|
${DESTDIR}${INCSDIR}/$I: $I
|
|
|
|
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
|
1999-08-21 10:17:45 +04: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})
|
1997-03-25 00:54:12 +03:00
|
|
|
.endfor
|
1997-05-07 19:53:28 +04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !target(incinstall)
|
|
|
|
incinstall::
|
1997-03-25 00:54:12 +03:00
|
|
|
.endif
|