Subject: Re: Syntax of :? in Makefiles
To: None <tech-userlevel@NetBSD.org>
From: Bill Stouder-Studenmund <wrstuden@netbsd.org>
List: tech-userlevel
Date: 05/24/2007 21:22:39
--aZoGpuMECXJckB41
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, May 19, 2007 at 07:00:07PM +0200, Klaus Heinz wrote:
> Klaus Heinz wrote:
>=20
> > If this extension can only be used as a test for a variable definition,
> > the words "actually an expression" in the man page are misleading, IMO.
>=20
> Ok, call me stupid. I don't know what went wrong with my previous tests,
> but now I get "false" for
>=20
>   TESTVAR=3Dbla
>=20
>   all:
>   	echo ${empty(TESTVAR):?true:false}
>=20
> On the other hand, I still get an error for
>=20
>   	echo ${empty(TESTVAR:Mbla):?true:false}
>=20
> make: Bad conditional expression `empty(TESTVAR' in empty(TESTVAR?true:fa=
lse
>=20
> The missing closing parenthesis probably hints at some bug.

I think you want ${TESTVAR:Mbla} but I'm not sure. Did you get an answer=20
on this?

Take care,

Bill

--aZoGpuMECXJckB41
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iD8DBQFGVmSOWz+3JHUci9cRAsXLAJ0V3Qe/MZIcFvOKx1TH1iiJDGYP6ACfVe0o
5tJUcDkQJELw34fBhWuXjk4=
=wlmq
-----END PGP SIGNATURE-----

--aZoGpuMECXJckB41--