Subject: Re: make: allow quoted lhs in conditionals
To: Simon J. Gerraty <sjg@crufty.net>
From: James Chacon <jmc@NetBSD.org>
List: tech-toolchain
Date: 04/08/2004 04:21:39
On Thu, Apr 08, 2004 at 01:32:50AM -0700, Simon J. Gerraty wrote:
> Ok, revised patch with more extensive unit test.
> Cross building -current/sparc toolchain and pkgsrc/devel/bmake
> worked fine.
> 
> The only reason for passing termc (0 or ')') is to mimmic the previous
> behavior for
> 
> .if (${VAR})
> 
> which isn't legal - according to the grama in cond.c, not sure what it
> would/should mean anyway.

In general I've seen this used to simply test "does this var have a value"?

James