Home | History | Annotate | Line # | Download | only in mk
bsd.inc.mk revision 1.19
      1  1.18       wiz #	$NetBSD: bsd.inc.mk,v 1.19 2001/10/31 21:15:41 tv Exp $
      2   1.3   mycroft 
      3   1.9       cjs .PHONY:		incinstall
      4   1.9       cjs includes:	${INCS} incinstall
      5   1.1  christos 
      6   1.5   mycroft .if defined(INCS)
      7  1.19        tv incinstall:: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
      8  1.19        tv .PRECIOUS: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
      9  1.10       cgd .if !defined(UPDATE)
     10  1.19        tv .PHONY: ${INCS:@I@${DESTDIR}${INCSDIR}/$I@}
     11  1.10       cgd .endif
     12  1.14   mycroft 
     13  1.16   mycroft __incinstall: .USE
     14   1.1  christos 	@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
     15  1.13    simonb 	    (echo "${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -c \
     16  1.13    simonb 		-o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} \
     17  1.13    simonb 		${.TARGET}" && \
     18  1.13    simonb 	     ${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -c -o ${BINOWN} \
     19  1.13    simonb 		 -g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
     20  1.16   mycroft 
     21  1.17  sommerfe .for I in ${INCS:O:u}
     22  1.19        tv ${DESTDIR}${INCSDIR}/$I: $I __incinstall
     23   1.1  christos .endfor
     24   1.5   mycroft .endif
     25   1.5   mycroft 
     26   1.5   mycroft .if !target(incinstall)
     27   1.5   mycroft incinstall::
     28   1.1  christos .endif
     29