help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question on wildcard support in conditionals (ifeq, ifneq, etc)?


From: Randy Kao
Subject: Re: Question on wildcard support in conditionals (ifeq, ifneq, etc)?
Date: Mon, 29 Sep 2008 16:50:23 -0700

Hi Greg,

Thanks for the quick feedback.

ifeq (apple_, $(findstring apple_, $(TARGET)))
...
endif

I was hoping for something a little less convoluted but this seems to do the trick.

Thanks again.
-Randy

On Mon, Sep 29, 2008 at 4:23 PM, Greg Chicares <address@hidden> wrote:
On 2008-09-29 23:15Z, Randy Kao wrote:
>
> You have a variable named TARGET which has been set to either apple_pie or
> apple_turnover.
>
> In some Makefile somewhere you want to check to see if it is apple* (either
> apple_pie, apple_turnover, apple_whatever).

Use $(findstring) to test whether one string contains another.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]