[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ifeq and friends directives
From: |
Jeffrey Walton |
Subject: |
Re: ifeq and friends directives |
Date: |
Thu, 11 Aug 2011 03:31:51 -0400 |
On Thu, Aug 11, 2011 at 12:44 AM, Paul Smith <address@hidden> wrote:
> On Wed, 2011-08-10 at 23:17 -0400, Jeffrey Walton wrote:
>> Hi All,
>>
>> Is it possible? Or do I need to keep the test limited to one expression?
>>
>> // Extraneous text after `ifeq' directive
>> ifeq ($(MAKECMDGOALS),codec) || ($(MAKECMDGOALS),codecs)
>> WANT_DEBUG := 1
>> endif
>>
>> // Extraneous text after `ifeq' directive
>> ifeq ($(MAKECMDGOALS),codec) || ifeq ($(MAKECMDGOALS),codecs)
>> WANT_DEBUG := 1
>> endif
>
> If you have a sufficiently modern GNU make (3.81 or better) you can use
> the $(and ...) and $(or ...) functions. See the manual.
Yes, 3.81. Man pages are good, books are better (but my book looks
like Stallman might have chiseled its first draft).
> However, for the particular situation you show above, you can use
> $(filter ...) just as easily.
Thanks Paul. That did the trick.
Jeff