NetBSD-Users archive

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

Re: make variable modifier :?



On Wed, Oct 08, 2008 at 06:05:54PM -0400, James K. Lowden wrote:
> I don't understand how to use the :? modifier in a make variable. 
> Examples are hard to come by and the manual is cryptic.  It says:
> 
> :?true_string:false_string
>    If the variable (actually an expression; see below) 
>    evaluates to true....
> 
> What means "true" here?  It doesn't refer to empty/defined/undefined,
> apparently.  

The important part is "actually an expression".  E.g.:

${"toto" == "tata":?titi:tutu}

But it seems broken anyway:

${empty(FILES:Mzzz):?excludes:includes}

doesn't work, make chokes on the :.

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgp5c5dEhuFgc.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index