help-make
[Top][All Lists]
Advanced

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

Re: complex gmake conditionals: NOT ( ifndef(arg1) AND ifdef(arg2) )


From: Ken Smith
Subject: Re: complex gmake conditionals: NOT ( ifndef(arg1) AND ifdef(arg2) )
Date: Wed, 19 May 2004 17:10:21 -0400
User-agent: Mozilla Thunderbird 0.5 (Windows/20040212)

If I understand De Morgan correctly (had to use Wikipedia to brush of my Boolean Algebra), this conditional can be simplified from ! (a or !b) to !a and b. So perhaps it could be more naturally written like this.

ifndef val3
  ifdef val4

Ken

Boris Kolpackov wrote:

<address@hidden> writes:
But what do I do with something like

        #if ! ( (defined ( val3 ) ) || ( ! defined (val4) ) )
        key2 val5
        #endif


ifeq ($(val3)$(if $(val4),,t),)

-boris



_______________________________________________
Help-make mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/help-make





reply via email to

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