Re: Help : how to use $(or condition ) & $(and condition ) in makefile

2008-06-17 Thread Tim Murphy
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

Re: Help : how to use $(or condition ) & $(and condition ) in makefile

2008-06-06 Thread rakesh aggarwal
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)),