tech-userlevel archive

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

Re: another make(1) .for loop problem



On Wed, Jan 28, 2009 at 01:26:36AM +0100, Jukka Salmi wrote:
> 
> Hmm, without a .for loop this gets even stranger (makefiles are attached):
> 
> $ make
> a (containing 'x') is...
> ...defined
> ...not defined

Not really, both:
    .ifdef ${var}
and
    .ifndef ${var}
got treated as:
    .if "${var}" != ""

In any case, I've changed the code so that only:
    .ifdef "${var}"
and
    .ifdef <number>
get converted to comparisons.

        David

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


Home | Main Index | Thread Index | Old Index