Date: Tue, 17 Apr 2012 12:47:22 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: Ruslan Mahmatkhanov <cvs-src@yandex.ru> Cc: FreeBSD Ports Mailing List <ports@FreeBSD.org> Subject: Re: make equivalent for looking in the list of values Message-ID: <4F8D584A.4070805@FreeBSD.org> In-Reply-To: <4F8D5775.5040708@yandex.ru> References: <4F8D5775.5040708@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAFE26FBF4468D8BE6CDBB74B Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 17/04/2012 12:43, Ruslan Mahmatkhanov wrote: >=20 > Hi. >=20 > For example, there is a variable in Makefile: >=20 > ALLOWED_FORMATS=3Dhtml pdf-a4 pdf-letter text >=20 > How could I check that the value `epub' is not belongs to this values > list in terms of make(1). >=20 > Need something like this (in terms of python): >=20 > if 'epub' not in ALLOWED_FORMATS: > ... > ... >=20 > but for make(1). I checked manpage and wasn't be able to find something= > like this at glance. It can be done with `.for' I think, but I didn't > like it much. if !${ALLOWED_FORMATS:Mepub} Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey --------------enigAFE26FBF4468D8BE6CDBB74B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+NWFEACgkQ8Mjk52CukIwdIQCeKmphwp0OCBkqd8LpVKKv+QiE w1MAnjsCKRgE1sWXqXQwerxgVnfX4qFm =gxQ7 -----END PGP SIGNATURE----- --------------enigAFE26FBF4468D8BE6CDBB74B--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F8D584A.4070805>