Date: Mon, 27 Jul 2015 13:34:07 +0300 From: Boris Samorodov <bsam@passap.ru> To: freebsd-ports@freebsd.org Subject: Re: error message from Freshports after commit? Message-ID: <55B6091F.4000001@passap.ru> 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
27.07.2015 12:55, Alexander Leidinger пишет: > Quoting Boris Samorodov <bsam@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--- Nope: ----- % make QUOTED_VAR=test % echo $? 0 % ----- >>> 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 bsam@host.wart.ru:/usr/obj/usr/src/sys/HOST >> i386 -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55B6091F.4000001>