help-make
[Top][All Lists]
Advanced

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

Re: strip, non-ordering?


From: Shawn Halpenny
Subject: Re: strip, non-ordering?
Date: Wed, 28 Sep 2005 00:29:37 -0400

On 9/28/05, Torsten Mohr <address@hidden> wrote:
> Hi,
>
> i want to remove double entries from a list, actually something
> like $(strip ) does, but without the effect of sorting them.

I've been using this:

define uniq
$(strip $(eval tmp:=)$(foreach i,$1,$(eval tmp+=$(if $(filter
$i,$(tmp)),,$i))) $(tmp))
endef

--
Shawn Halpenny




reply via email to

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