Skip missing subdirectories to enable builds in partial source trees.

Directories being skipped are mentioned as '===> dir [skipped]'
This commit is contained in:
christos 1997-04-15 21:32:40 +00:00
parent a2a43b1836
commit 9a7df3e0e4

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.subdir.mk,v 1.14 1997/03/29 08:02:56 mikel Exp $ # $NetBSD: bsd.subdir.mk,v 1.15 1997/04/15 21:32:40 christos Exp $
# @(#)bsd.subdir.mk 8.1 (Berkeley) 6/8/93 # @(#)bsd.subdir.mk 8.1 (Berkeley) 6/8/93
.include <bsd.own.mk> .include <bsd.own.mk>
@ -23,9 +23,13 @@ __SUBDIRINTERNALUSE: .USE
else \ else \
_nextdir_="$${_THISDIR_}/$${_newdir_}"; \ _nextdir_="$${_THISDIR_}/$${_newdir_}"; \
fi; \ fi; \
echo "===> $${_nextdir_}"; \ if test -d ${.CURDIR}/$${_newdir_}; then \
cd ${.CURDIR}/$${_newdir_}; \ echo "===> $${_nextdir_}"; \
${MAKE} _THISDIR_="$${_nextdir_}" $${target}); cd ${.CURDIR}/$${_newdir_}; \
${MAKE} _THISDIR_="$${_nextdir_}" $${target}; \
else \
echo "===> $${_nextdir_} [skipped]"; \
fi)
.for dir in ${SUBDIR} .for dir in ${SUBDIR}
all-${dir}: __SUBDIRINTERNALUSE all-${dir}: __SUBDIRINTERNALUSE