Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jul 2015 00:56:46 +0200
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Alexander Leidinger <Alexander@leidinger.net>, freebsd-ports@freebsd.org
Subject:   Re: error message from Freshports after commit?
Message-ID:  <7219AB26EFB4FF4347E8DADE@atuin.in.mat.cc>
In-Reply-To: <20150727115524.Horde.W8uCr4IPga-UMkhOFd3QBtl@webmail.leidinger.net>
References:  <20150726152029.Horde.5fJLWJHfi3zZcyZl2BNIRA8@webmail.leidinger.net> <C613F5DA174FA175BD4AA8CF@atuin.in.mat.cc> <20150726223123.00000f0d@Leidinger.net> <55B5606A.6070408@passap.ru> <20150727115524.Horde.W8uCr4IPga-UMkhOFd3QBtl@webmail.leidinger.net>

next in thread | previous in thread | raw e-mail | index | archive | help
--==========7715BC94351D8F438F31==========
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline



+--On 27 juillet 2015 11:55:24 +0200 Alexander Leidinger
<Alexander@leidinger.net> wrote:
| testtarget:
| .if defined(${QUOTED_VAR}) && ${QUOTED_VAR} == "test"
|   	echo works
| .endif

No.  If you run "make QUOTED_VAR=test testtarget" this will evaluate as:

testtarget:
.if defined(test) && test == "test"
  	echo works
.endif

and of course, test is not defined.

You want to write:

testtarget:
.if defined(QUOTED_VAR) && ${QUOTED_VAR} == "test"
  	echo works
.endif


-- 
Mathieu Arnold
--==========7715BC94351D8F438F31==========
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQJ8BAEBCgBmBQJVtrcuXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz
QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85IZ4AQAJVTWeN7hvXe4ssw6c0XRcQT
nTWRnj3N15YRS+4vtNGIdpOrkJKmaTOO+EcY9xdKJBOv7yKnpD7SMmct7Tol0uvb
33XBAutzaQ0PQfDHzttcevNI8OJkeiXCq21O2BnH1QjUIa3dGVoRrlzdyjBN1qWh
f/V3a/IDvbdYYFxV/QFYIia/sQdkEkc/rvcguj9mHyG0IyA48HOpc03im1Il5Ys0
S+2F+kW2K3ZVoO8yjApz6paNlAozrkAYvsbpbo+0+WVs5mtsuxm0Om7D+ifIR1yg
9zC06S28v6SINjba/oCgl6+Y33AFUES+V4rYu4CzeV5nNW18MyQZxWlyzw5vhQ2M
2o+gTfh7uYQ8m3t3s/FNlHrXt+M3gjT0DeWT7FmU8yPxphW379Jx91On9L3y19yc
IwrSHRTf/aVCVe25J5ME9OoN/vg7YcVV/+tWEuyoOvQAro6Sbrm2/YIuiLznkMbO
/XxeA1t90ds3CJ+2V8p+lL16Te5uD/fdBBDWm1h50e0Y6XK7miISyM/BUbZhQluz
Wg6Zd7fswY4h/XRw6OMUHg5MznNQ99YwWJUl1nlIHxZqnBdL/INTAqLwHRfg3XNX
En1OxgU3xkEpi0sYIsm5vsnCIHR5l/CJlcA9sq4UxO3ausHHN81ub4/Ol6xcvqXb
a4lLEiGPEIq7qC2oCAhf
=hCwB
-----END PGP SIGNATURE-----

--==========7715BC94351D8F438F31==========--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7219AB26EFB4FF4347E8DADE>