NetBSD/share/mk/bsd.inc.mk
christos 22d479a4a8 Don't generate an include target if we don't have INCS set, because SUBDIRS
can make one too. This will break on Makefiles that have both INCS and SUBDIRS,
so then we'll need to change includes: to includes::, but we don't have any
yet.
1997-03-27 17:39:31 +00:00

16 lines
464 B
Makefile

# $NetBSD: bsd.inc.mk,v 1.2 1997/03/27 17:39:31 christos Exp $
.if defined(INCS) && !empty(INCS)
.for I in ${INCS}
inclinstall:: ${DESTDIR}${INCSDIR}/$I
${DESTDIR}${INCSDIR}/$I: $I
@cmp -s ${.ALLSRC} ${.TARGET} > /dev/null 2>&1 || \
(echo "${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
${.ALLSRC} ${.TARGET}" && \
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NONBINMODE} \
${.ALLSRC} ${.TARGET})
.endfor
includes: inclinstall
.endif