Re: building a package two times
Cyril Brulebois <kibi@debian.org> 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
Reply to: