Cyril Brulebois <[EMAIL PROTECTED]> writes:

> On 03/05/2008, Marco d'Itri wrote:
>> DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
>> ifeq      ($(DEB_HOST_ARCH),amd64)
>> FLAVORS := std
>> else ifeq ($(DEB_HOST_ARCH),ia64)
>> FLAVORS := std
>> else ifeq ($(DEB_HOST_ARCH),ppc64)
>> FLAVORS := std
>> else ifeq ($(DEB_HOST_ARCH),s390x)
>> FLAVORS := std
>> else
>> FLAVORS := std lfs
>> endif
>
> Since you have “FLAVORS := std” in every case but the last one, why not
> using findstring, so as to factorize a bit?
>
> Mraw,
> KiBi.

FLAVORS := std
ifeq ((findstring $(DEB_HOST_ARCH),amd64 ia64 ppc64 s390x),)
FLAVORS += lfs
endif

Like this?

MfG
        Goswin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to