tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make: new modifyer :Y



On Mon, Nov 07, 2011 at 11:11:31AM -0500, Julio Merino wrote:
> 
> I guess something like:
> 
> .if istrue(PKG_DEVELOPER)
> 
> would do the trick.

Don't go there, make's parser for conditionals doesn't like 
functions with variable names as arguments - they are all horrid
special cases, especially when modifiers can be applied.

This is all made worse by the expectation/requirement to short
circuit evaluation.

FWIW empty(foo) has to be converted to $(foo) == "" as part of
it's evaluation.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index