RE: Help : how to use $(or condition ) $(and condition ) inmakefile

2008-06-17 Thread Martin Dorey
Try make -f and.mk A=22 B=44. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Murphy Sent: Tuesday, June 17, 2008 09:31 To: bug-make@gnu.org Subject: Re: Help : how to use $(or condition ) $(and condition ) inmakefile Hi, I have amended an

Re: Help : how to use $(or condition ) $(and condition ) inmakefile

2008-06-17 Thread Tim Murphy
Yup, that's why the eq macro one is better: make -f and.mk A=22 B=44 Crude AND Demo: TRUE: A is 2, B is 4 Macro-based AND Demo: FALSE: A is 22, B is 44 The crude one fails because as you noticed, it considers 2, 22 and 222 to all be the same. That's why the macro also reverses the subst