Subject: Re: Proposal EXCLUDE_SUBDIRS
To: Frederick Bruckman <fb@enteract.com>
From: Alan Barrett <apb@cequrux.com>
List: tech-misc
Date: 08/24/2000 09:07:57
On Wed, 23 Aug 2000, Frederick Bruckman wrote:
> + .if defined(EXCLUDE_SUBDIRS)
> + .for __EXCLUDE_SUBDIR in ${EXCLUDE_SUBDIRS}
> + .if ${BSDSRCDIR}/${__EXCLUDE_SUBDIR:H} == ${.CURDIR}
> + __TMP_SUBDIR:=		${SUBDIR:N${__EXCLUDE_SUBDIR:T}}
> + SUBDIR:=		${__TMP_SUBDIR}
> + .endif
> + .endfor
> + .endif # defined(EXCLUDE_SUBDIRS)

I don't like making everything relative to BSDSRCDIR, because it means
that other code can't use this mechanism.  Say I have another project
that uses BSD-style makefiles but doesn't use BSDSRCDIR, and I want to
use EXCLUDE_SUBDIRS.

But somebody else could change it at some future time to remove the
dependence on BSDSRCDIR, so I don't object to committing what you have
now.

--apb (Alan Barrett)