I have this sample makefile:

FILES = a.n b.n c.n
RES   = $(FILES:.n=.m)
F     = a.n b.n

all: $(RES)

%m: %n
        @echo "*$<* ... *$(FILES)* ... *$(findstring $<,$(F))*"
ifeq ($<,$(findstring $<,$(F)))
        @echo "++$<==$(findstring $<,$(F))++"
else
        @echo "++$<!=$(findstring $<,$(F))++"
endif


I ran make and this is the output:
*a.n* ... *a.n b.n c.n* ... *a.n*
++a.n==a.n++
*b.n* ... *a.n b.n c.n* ... *b.n*
++b.n==b.n++
*c.n* ... *a.n b.n c.n* ... **
++c.n==++

What is wrong with this ifeq statement?

I'm not in list so please CC me directly.

thanks
-- 
Massimiliano Cialdi
[EMAIL PROTECTED]
[EMAIL PROTECTED]


_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to