|
From: | John Graham-Cumming |
Subject: | Re: Logical AND, OR, XOR operators inside ifeq ... endif construct condition. |
Date: | Fri, 28 Oct 2005 09:06:11 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104 |
Paul D. Smith wrote:
I do it like this: ifeq ($(var),$(filter $(var),X Y)) ... endif Most others can be handled using these types of methods as well. There are no specific operators for AND, OR, etc.
If you are using my GNU Make Standard Library (http://gmsl.sf.net/), I have added the following operators: not, and, or, xor, nand, nor, xnor to the CVS version.
John. -- John Graham-Cumming address@hidden Home: http://www.jgc.org/ POPFile: http://getpopfile.org/ Sign up for my Spam and Anti-spam Newsletter at http://www.jgc.org/
[Prev in Thread] | Current Thread | [Next in Thread] |