From cd2b7ae81bbc0c909285b8389733080b7525e2f1 Mon Sep 17 00:00:00 2001 From: espie Date: Wed, 28 Mar 2001 10:55:52 +0000 Subject: [PATCH] Move DUDS handling to makefile level --- infrastructure/mk/bsd.port.subdir.mk | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/infrastructure/mk/bsd.port.subdir.mk b/infrastructure/mk/bsd.port.subdir.mk index ee7944394a3..37f804d184f 100644 --- a/infrastructure/mk/bsd.port.subdir.mk +++ b/infrastructure/mk/bsd.port.subdir.mk @@ -1,5 +1,5 @@ # from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91 -# $OpenBSD: bsd.port.subdir.mk,v 1.31 2000/12/16 15:49:13 espie Exp $ +# $OpenBSD: bsd.port.subdir.mk,v 1.32 2001/03/28 10:55:52 espie Exp $ # FreeBSD Id: bsd.port.subdir.mk,v 1.20 1997/08/22 11:16:15 asami Exp # # The include file contains the default targets @@ -70,14 +70,21 @@ RECURSIVE_FETCH_LIST?= No REPORT_PROBLEM?=exit 1 +# Need an actual list of all subdirs to complete SKIPPED +_ALL_SUBDIR:=${SUBDIR} +SKIPPED= +.if defined(DUDS) +. for i in ${DUDS:S/:/,/} +SKIPPED+=${_ALL_SUBDIR:M$i} +SUBDIR:=${SUBDIR:N$i} +. endfor +.endif + _SUBDIRUSE: .USE +. for i in ${SKIPPED} + @echo "===> ${PKGPATH}${_SEP}$i skipped" +. endfor @for entry in ${SUBDIR}; do \ - for dud in $$DUDS; do \ - if [ $${dud} = $${entry} ]; then \ - ${ECHO_MSG} "===> ${PKGPATH}${_SEP}$${entry} skipped"; \ - continue 2; \ - fi; \ - done; \ if expr "$$entry" : '.*[,:]' >/dev/null; then \ flavor=`echo $$entry | sed -e 's/[^,:]*[,:]//' -e 's/,/ /g'`; \ entry=`echo $$entry | sed -e 's/[:,].*//'`; \