equal
deleted
inserted
replaced
1 # |
1 # |
2 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 # Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 # All rights reserved. |
3 # All rights reserved. |
4 # This component and the accompanying materials are made available |
4 # This component and the accompanying materials are made available |
5 # under the terms of the License "Eclipse Public License v1.0" |
5 # under the terms of the License "Eclipse Public License v1.0" |
6 # which accompanies this distribution, and is available |
6 # which accompanies this distribution, and is available |
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 # at the URL "http://www.eclipse.org/legal/epl-v10.html". |
86 endef |
86 endef |
87 |
87 |
88 # A macro for removing duplicate tokens from a list |
88 # A macro for removing duplicate tokens from a list |
89 # whilst retaining the list's order |
89 # whilst retaining the list's order |
90 define uniq |
90 define uniq |
91 $(if $(1),$(info $(words $(1)) $(1))\ |
91 $(if $(1),\ |
92 $(firstword $(1))$(call uniq,$(filter-out $(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))\ |
92 $(firstword $(1))$(call uniq,$(filter-out $(firstword $(1)),$(wordlist 2,$(words $(1)),$(1))))\ |
93 ,) |
93 ,) |
94 endef |
94 endef |
95 |
95 |
96 # A macro for enclosing all list elements in some kind of quote or bracket |
96 # A macro for enclosing all list elements in some kind of quote or bracket |