bug-gnulib
[Top][All Lists]
Advanced

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

Re: maint.mk: improve the release procedure


From: Akim Demaille
Subject: Re: maint.mk: improve the release procedure
Date: Tue, 25 Sep 2012 19:25:50 +0200

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).




reply via email to

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