error message from Freshports after commit?

Baptiste Daroussin bapt at FreeBSD.org
Mon Jul 27 09:57:52 UTC 2015


On Mon, Jul 27, 2015 at 11:55:24AM +0200, Alexander Leidinger wrote:
> Quoting Boris Samorodov <bsam at passap.ru> (from Mon, 27 Jul 2015  
> 01:34:18 +0300):
> 
> > Hi, Alexander!
> 
> >> a variable expansion as of above, or do I need to remove the quotes
> >> like below
> >> ---snip---
> >> testtarget:
> >> .if ${QUOTED_VAR} == "test"
> >> 	echo works
> >> .endif
> >> ---snip---
> >
> > % make QUOTED_VAR=test
> > echo works
> > works
> >
> > If QUOTED_VAR is not defined, the test fails:
> >
> > % make
> > "Makefile", line 2: Malformed conditional (${QUOTED_VAR} == "test")
> > "Makefile", line 4: if-less endif
> > make: fatal errors encountered -- cannot continue
> 
> What about this?
> ---snip---
> testtarget:
> .if defined(${QUOTED_VAR}) && ${QUOTED_VAR} == "test"
>   	echo works
> .endif
> ---snip---

this should work in both.

Best regards,
Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20150727/6a270771/attachment.bin>


More information about the freebsd-ports mailing list