From 9a7df3e0e408324764212a2dce911e92f4fa5004 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 15 Apr 1997 21:32:40 +0000 Subject: [PATCH] Skip missing subdirectories to enable builds in partial source trees. Directories being skipped are mentioned as '===> dir [skipped]' --- share/mk/bsd.subdir.mk | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk index 525e5d543d1c..c31c05590f3c 100644 --- a/share/mk/bsd.subdir.mk +++ b/share/mk/bsd.subdir.mk @@ -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 .include @@ -23,9 +23,13 @@ __SUBDIRINTERNALUSE: .USE else \ _nextdir_="$${_THISDIR_}/$${_newdir_}"; \ fi; \ - echo "===> $${_nextdir_}"; \ - cd ${.CURDIR}/$${_newdir_}; \ - ${MAKE} _THISDIR_="$${_nextdir_}" $${target}); + if test -d ${.CURDIR}/$${_newdir_}; then \ + echo "===> $${_nextdir_}"; \ + cd ${.CURDIR}/$${_newdir_}; \ + ${MAKE} _THISDIR_="$${_nextdir_}" $${target}; \ + else \ + echo "===> $${_nextdir_} [skipped]"; \ + fi) .for dir in ${SUBDIR} all-${dir}: __SUBDIRINTERNALUSE