Le 25 sept. 2012 à 17:25, Stefano Lattarini a écrit : Hi Stefano,
> Alas, this is busted for empty strings: > > $ cat Makefile > equal = ... > empty1 = > empty2 = > all: > $(if $(call equal,$(emtpy1),$(empty2)),:,false) > $ make > false > make: *** [all] Error 1 > > If you care about such a situation, you'll need this adjustment (or > something similar): > > equal = $(and $(findstring :$(1),:$(2)),$(findstring :$(2),:$(1))) > > with which one has: > > $ make > : Indeed. I like the fact that _equal returns the argument, so I guess we're actually discussing another function here, say $(call _ifeq,Str1,Str2,Then,Else).