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.