Home | History | Annotate | Line # | Download | only in mk
bsd.inc.mk revision 1.6
      1 #	$NetBSD: bsd.inc.mk,v 1.6 1997/05/09 05:17:29 mycroft Exp $
      2 
      3 .PHONY:		incinstall
      4 includes:	incinstall
      5 
      6 .if defined(INCS)
      7 includes: ${INCS}
      8 .for I in ${INCS}
      9 incinstall:: ${DESTDIR}${INCSDIR}/$I
     10 
     11 .PRECIOUS: ${DESTDIR}${INCSDIR}/$I
     12 ${DESTDIR}${INCSDIR}/$I: $I
     13 	@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
     14 	    (echo "${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
     15 		${.ALLSRC} ${.TARGET}" && \
     16 	     ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
     17 		${.ALLSRC} ${.TARGET})
     18 .endfor
     19 .endif
     20 
     21 .if !target(incinstall)
     22 incinstall::
     23 .endif
     24