make equivalent for looking in the list of values
Ruslan Mahmatkhanov
cvs-src at yandex.ru
Tue Apr 17 11:53:51 UTC 2012
Matthew Seaman wrote on 17.04.2012 15:47:
> 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
>
Thanks a lot for such a fast answer, Matthew! This indeed helped.
--
Regards,
Ruslan
Tinderboxing kills... the drives.
More information about the freebsd-ports
mailing list