bsd.inc.mk revision 1.7 1 # $NetBSD: bsd.inc.mk,v 1.7 1997/05/09 05:43:41 mycroft 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 ${DESTDIR}${INCSDIR}/$I: $I
12 @cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
13 (echo "${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
14 ${.ALLSRC} ${.TARGET}" && \
15 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
16 ${.ALLSRC} ${.TARGET})
17 .endfor
18 .endif
19
20 .if !target(incinstall)
21 incinstall::
22 .endif
23