Date: Mon, 27 Jul 2015 11:57:46 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Alexander Leidinger <Alexander@leidinger.net> Cc: freebsd-ports@freebsd.org Subject: Re: error message from Freshports after commit? Message-ID: <20150727095746.GA20701@ivaldir.etoilebsd.net> 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
--FCuugMFkClbJLl1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 27, 2015 at 11:55:24AM +0200, Alexander Leidinger wrote: > Quoting Boris Samorodov <bsam@passap.ru> (from Mon, 27 Jul 2015 =20 > 01:34:18 +0300): >=20 > > Hi, Alexander! >=20 > >> a variable expansion as of above, or do I need to remove the quotes > >> like below > >> ---snip--- > >> testtarget: > >> .if ${QUOTED_VAR} =3D=3D "test" > >> echo works > >> .endif > >> ---snip--- > > > > % make QUOTED_VAR=3Dtest > > echo works > > works > > > > If QUOTED_VAR is not defined, the test fails: > > > > % make > > "Makefile", line 2: Malformed conditional (${QUOTED_VAR} =3D=3D "test") > > "Makefile", line 4: if-less endif > > make: fatal errors encountered -- cannot continue >=20 > What about this? > ---snip--- > testtarget: > .if defined(${QUOTED_VAR}) && ${QUOTED_VAR} =3D=3D "test" > echo works > .endif > ---snip--- this should work in both. Best regards, Bapt --FCuugMFkClbJLl1L Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlW2AJoACgkQ8kTtMUmk6Eyq1ACfaxfQBQBf3YgOXlP6zXZf5b7X ElEAn1CmEjAiFE9AY/IMxv45g8LDyO+X =fjU+ -----END PGP SIGNATURE----- --FCuugMFkClbJLl1L--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150727095746.GA20701>