mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
defs.mk: Fix uniq
uniq failed on empty argument lists, fix that Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
8b965f16ac
commit
34a42cd0a4
1 changed files with 1 additions and 5 deletions
|
|
@ -125,11 +125,7 @@ define install_links
|
||||||
done;
|
done;
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define uniq =
|
uniq = $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
|
||||||
$(eval seen :=)
|
|
||||||
$(foreach _,$1,$(if $(filter $_,${seen}),,$(eval seen += $_)))
|
|
||||||
${seen}
|
|
||||||
endef
|
|
||||||
|
|
||||||
# ----- standard variables
|
# ----- standard variables
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue