[Top][All Lists]
[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).
- Re: maint.mk: improve the release procedure, (continued)
- Re: maint.mk: improve the release procedure, Akim Demaille, 2012/09/24
- Re: maint.mk: improve the release procedure, Jim Meyering, 2012/09/24
- Re: maint.mk: improve the release procedure, Akim Demaille, 2012/09/24
- Re: maint.mk: improve the release procedure, Jim Meyering, 2012/09/25
- Re: maint.mk: improve the release procedure, Akim Demaille, 2012/09/25
- Re: maint.mk: improve the release procedure, Akim Demaille, 2012/09/25
- Re: maint.mk: improve the release procedure, Akim Demaille, 2012/09/25
- Re: maint.mk: improve the release procedure, Jim Meyering, 2012/09/25
- Re: maint.mk: improve the release procedure, Akim Demaille, 2012/09/25
- Re: maint.mk: improve the release procedure, Stefano Lattarini, 2012/09/25
- Re: maint.mk: improve the release procedure,
Akim Demaille <=
Re: maint.mk: improve the release procedure, Akim Demaille, 2012/09/21