Subject: Re: latest make in -current broken?
To: None <apb@cequrux.com>
From: Simon J. Gerraty <sjg@quick.com.au>
List: current-users
Date: 06/09/2001 19:25:39
> So, now I simply append the name of the vars to .MAKEOVERRIDES
> and in ExportMAKEFLAGS use ${.MAKEOVERRIDES:O:u:@v@$v=${$v:Q}@}
> which will do duplicate suppression on the names, and then :Q quote
> the values.  The result seems correct.  Given:

This design has a very nice (IMHO) side effect in that you can now do:

.MAKEOVERRIDES+= SOMETHING

and SOMETHING=${SOMETHING:Q} will be included in MAKEFLAGS.

I also fixed what looks like a bug in VarLoopExpand (or perhaps the
bug is in VarModify), anyway, VarLoopExpand will now do nothing if
passed an empty value for the loop iterator variable.

--sjg