help-make
[Top][All Lists]
Advanced

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

searching for a comman with $(findstring)


From: Mike Frysinger
Subject: searching for a comman with $(findstring)
Date: Mon, 18 Jun 2007 03:40:31 -0400
User-agent: KMail/1.9.7

is it possible to search for a comma using $(findstring) ?  i tried escaping 
it with no luck :(

test:
        echo $(findstring -Wl,moo,$(LDFLAGS))

which obviously behaves like:
        find = -Wl
        in = moo,$(LDFLAGS)

this also fails:
        echo $(findstring -Wl\,moo,$(LDFLAGS))

the best i have is:
MOO = -Wl,moo
$(findstring $(MOO),$(LDFLAGS))

but i was hoping to do it in one line
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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