bsd.inc.mk revision 1.12 1 # $NetBSD: bsd.inc.mk,v 1.12 1999/02/04 11:58:30 christos Exp $
2
3 .PHONY: incinstall
4 includes: ${INCS} incinstall
5
6 .if defined(INCS)
7 .for I in ${INCS}
8 incinstall:: ${DESTDIR}${INCSDIR}/$I
9
10 .PRECIOUS: ${DESTDIR}${INCSDIR}/$I
11 .if !defined(UPDATE)
12 .PHONY: ${DESTDIR}${INCSDIR}/$I
13 .endif
14 ${DESTDIR}${INCSDIR}/$I: $I
15 @cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
16 (echo "${INSTALL} ${RENAME} ${PRESERVE} -c -o ${BINOWN} \
17 -g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}" && \
18 ${INSTALL} ${RENAME} ${PRESERVE} -c -o ${BINOWN} -g ${BINGRP} \
19 -m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
20 .endfor
21 .endif
22
23 .if !target(incinstall)
24 incinstall::
25 .endif
26