27 lines
687 B
Makefile
27 lines
687 B
Makefile
# $NetBSD: bsd.inc.mk,v 1.13 1999/08/21 06:17:46 simonb Exp $
|
|
|
|
.PHONY: incinstall
|
|
includes: ${INCS} incinstall
|
|
|
|
.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} ${INSTPRIV} -c \
|
|
-o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} \
|
|
${.TARGET}" && \
|
|
${INSTALL} ${RENAME} ${PRESERVE} ${INSTPRIV} -c -o ${BINOWN} \
|
|
-g ${BINGRP} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET})
|
|
.endfor
|
|
.endif
|
|
|
|
.if !target(incinstall)
|
|
incinstall::
|
|
.endif
|