make/common/MakeBase.gmk
branchihse-jdk-library-branch
changeset 56433 c3cf838aa2da
parent 49270 f6ad4d73c834
child 50590 5fa19bad622d
equal deleted inserted replaced
56421:92bea2b7732a 56433:c3cf838aa2da
   632 endef
   632 endef
   633 
   633 
   634 ################################################################################
   634 ################################################################################
   635 # Filter out duplicate sub strings while preserving order. Keeps the first occurance.
   635 # Filter out duplicate sub strings while preserving order. Keeps the first occurance.
   636 uniq = \
   636 uniq = \
   637     $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1)))
   637     $(strip $(if $1,$(firstword $1) $(call uniq,$(filter-out $(firstword $1),$1))))
   638 
   638 
   639 # Returns all whitespace-separated words in $2 where at least one of the
   639 # Returns all whitespace-separated words in $2 where at least one of the
   640 # whitespace-separated words in $1 is a substring.
   640 # whitespace-separated words in $1 is a substring.
   641 containing = \
   641 containing = \
   642     $(strip \
   642     $(strip \