Hi,
I have amended an example of how to use $(and) that I posted earlier for
Rakesh. I have tested this on Linux with make 3.81.
It shows a crude way and a slightly more sophisticated way to use $(and) in
an if statement to determine if two variables have equal values:
A=2
> B=4
>
> # do "equal
lt;[EMAIL PROTECTED]>
Subject: Re: Help : how to use $(or condition ) & $(and condition ) in
makefile
To: [EMAIL PROTECTED]
Date: Friday, June 6, 2008, 3:40 PM
Hi,
# do "equal" by seeing if a subst returns the empty string:
A_is_2:=$(if $(subst 2,,$(A)),,T)
B_is_4:=$(if $(subst 4,,$(B)),