Quoting Boris Samorodov <b...@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---
Anyone out there with a 8.x or 9.x system who can test the above?
The system is:
% uname -a
FreeBSD host.wart.ru 9.3-STABLE FreeBSD 9.3-STABLE #34 r285813: Fri Jul
24 00:03:24 MSK 2015 b...@host.wart.ru:/usr/obj/usr/src/sys/HOST i386
Thanks,
Alexander.
--
http://www.Leidinger.net alexan...@leidinger.net: PGP 0xC773696B3BAC17DC
http://www.FreeBSD.org netch...@freebsd.org : PGP 0xC773696B3BAC17DC
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"