Home | History | Annotate | Line # | Download | only in mk
bsd.inc.mk revision 1.10
      1  1.10       cgd #	$NetBSD: bsd.inc.mk,v 1.10 1997/06/03 16:00:30 cgd 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.1  christos .for I in ${INCS}
      8   1.9       cjs incinstall:: ${DESTDIR}${INCSDIR}/$I
      9   1.1  christos 
     10   1.4   mycroft .PRECIOUS: ${DESTDIR}${INCSDIR}/$I
     11  1.10       cgd .if !defined(UPDATE)
     12  1.10       cgd .PHONY: ${DESTDIR}${INCSDIR}/$I
     13  1.10       cgd .endif
     14   1.1  christos ${DESTDIR}${INCSDIR}/$I: $I
     15   1.1  christos 	@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
     16   1.1  christos 	    (echo "${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
     17   1.1  christos 		${.ALLSRC} ${.TARGET}" && \
     18   1.1  christos 	     ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
     19   1.1  christos 		${.ALLSRC} ${.TARGET})
     20   1.1  christos .endfor
     21   1.5   mycroft .endif
     22   1.5   mycroft 
     23   1.5   mycroft .if !target(incinstall)
     24   1.5   mycroft incinstall::
     25   1.1  christos .endif
     26