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 Tue, Jan 27, 2009 at 11:22:22AM +0100, Jukka Salmi wrote:
> Hello,
> 
> on a 5.99.5 system with make(1) built from todays soures, the attached
> makefile fails:
> 
> $ make
> testing VAR0: not defined
> *** Error code 1
> [...]

The test is to try it without the .for loop...

I'm fairly sure that:
    .ifndef $(var)
is actually the test:
    .if $(var) != ""
not:
    .if defined($(var))

The .for loop now behaves the same way.

        David

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


Home | Main Index | Thread Index | Old Index