Subject: Re: Proposal EXCLUDE_SUBDIRS
To: Frederick Bruckman <>
From: David Brownlee <>
List: tech-misc
Date: 09/04/2000 08:56:25
On Sat, 26 Aug 2000, Frederick Bruckman wrote:

> On Sat, 26 Aug 2000, David Brownlee wrote:
> > 	Would it be possible to change the syntax of EXCLUDE_SUBDIRS so
> > 	it matched */${EXCLUDE_SUBDIRS} - maybe something with the M:
> > 	modfier?
> > 
> > 	So to exclude sys/arch/i386/stand/installboot you could set
> > 	EXCLUDE_SUBDIRS to sys/arch/i386/stand/installboot,
> > 	arch/i386/stand/installboot, i386/stand/installboot, etc.
> Hmm. I'm not sure, but I think, perhaps, it would still lead to
> ambiguities if you set it to exclude some common name like "doc", or
> "common".
	Agreed - but thats up to the person setting the variable.
	It doesn't affect anyone setting the full usr.sbin/pppd/doc
	(or whatever) path.

> How about, have EXCLUDE_DIR match against ${BSDSRCDIR}, and
> EXCLUDE_SUBDIR match against ${PWD}? I think PWD is pulled in from the
> environment when make is invoked, and not changed by make as it
> recurses through the subdirectories. Have to check.

	Hmm - you could even match EXCLUDE_SUBDIRS against both
	${BSDSRCDIR} and ${PWD} - two variables may be more complication
	than necessary.
			       -- A pmap for every occasion --