[Neil Brown <[EMAIL PROTECTED]>]
> O_OBJS := $(shell echo $(obj-y) | tr ' ' '\n' | cat -n | sort -u +1 | sort -n | cut
>-f2)
Clever. I like pipelines too. Here is a one-fork equivalent, untested:
nodups = $(shell g=' '; for f in $(1); do case $$g in (*" $$f "*) ;; (*) g="$$g$$f
"; echo $$f; esac; done)
O_OBJS := $(call nodups,$(obj-y))
Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/