Messages in this thread |  | | | From | Peter Samuelson <> | | Date | Thu, 30 Nov 2000 05:46:33 -0600 (CST) | | Subject | Re: [KBUILD] Re: PATCH - kbuild documentation. |
| |
[Neil Brown <neilb@cse.unsw.edu.au>] > 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 majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |