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 <[EMAIL PROTECTED]>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. >
_______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
