make equivalent for looking in the list of values
Matthew Seaman
matthew at FreeBSD.org
Tue Apr 17 11:47:37 UTC 2012
On 17/04/2012 12:43, Ruslan Mahmatkhanov wrote:
>
> Hi.
>
> For example, there is a variable in Makefile:
>
> ALLOWED_FORMATS=html pdf-a4 pdf-letter text
>
> How could I check that the value `epub' is not belongs to this values
> list in terms of make(1).
>
> Need something like this (in terms of python):
>
> if 'epub' not in ALLOWED_FORMATS:
> ...
> ...
>
> 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
--
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20120417/3a091ef4/signature.pgp
More information about the freebsd-ports
mailing list