NetBSD/share/mk/bsd.inc.mk

26 lines
660 B
Makefile
Raw Normal View History

# $NetBSD: bsd.inc.mk,v 1.12 1999/02/04 11:58:30 christos Exp $
1997-05-07 00:54:31 +04:00
.PHONY: incinstall
includes: ${INCS} incinstall
1997-05-07 19:53:28 +04:00
.if defined(INCS)
.for I in ${INCS}
incinstall:: ${DESTDIR}${INCSDIR}/$I
.PRECIOUS: ${DESTDIR}${INCSDIR}/$I
.if !defined(UPDATE)
.PHONY: ${DESTDIR}${INCSDIR}/$I
.endif
${DESTDIR}${INCSDIR}/$I: $I
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
(echo "${INSTALL} ${RENAME} ${PRESERVE} -c -o ${BINOWN} \
-g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}" && \
${INSTALL} ${RENAME} ${PRESERVE} -c -o ${BINOWN} -g ${BINGRP} \
1998-09-29 15:47:51 +04:00
-m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
.endfor
1997-05-07 19:53:28 +04:00
.endif
.if !target(incinstall)
incinstall::
.endif