error message from Freshports after commit?

Mathieu Arnold mat at FreeBSD.org
Mon Jul 27 22:56:49 UTC 2015



+--On 27 juillet 2015 11:55:24 +0200 Alexander Leidinger
<Alexander at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 949 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150728/ba394603/attachment.bin>


More information about the freebsd-ports mailing list