bsd.inc.mk revision 1.10 1 # $NetBSD: bsd.inc.mk,v 1.10 1997/06/03 16:00:30 cgd 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} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
17 ${.ALLSRC} ${.TARGET}" && \
18 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
19 ${.ALLSRC} ${.TARGET})
20 .endfor
21 .endif
22
23 .if !target(incinstall)
24 incinstall::
25 .endif
26