make/common/MakeBase.gmk
changeset 44725 8747b14eb49c
parent 44027 3a3050924db2
child 44894 e1b5a6c45d39
child 45323 52500c1d7f1f
equal deleted inserted replaced
44724:8efb5c82a573 44725:8747b14eb49c
   670   # The extra - is needed when FIND_CACHE_DIRS is empty but should be harmless.
   670   # The extra - is needed when FIND_CACHE_DIRS is empty but should be harmless.
   671   #
   671   #
   672   # Param 1 - Dirs to find in
   672   # Param 1 - Dirs to find in
   673   # Param 2 - (optional) specialization. Normally "-a \( ... \)" expression.
   673   # Param 2 - (optional) specialization. Normally "-a \( ... \)" expression.
   674   define CacheFind
   674   define CacheFind
   675       $(if $(filter-out $(addsuffix /%,- $(FIND_CACHE_DIRS)) $(FIND_CACHE_DIRS),$1), \
   675     $(if $(filter-out $(addsuffix /%,- $(FIND_CACHE_DIRS)) $(FIND_CACHE_DIRS),$1), \
   676     $(shell $(FIND) $1 \( -type f -o -type l \) $2), \
   676       $(if $(wildcard $1), $(shell $(FIND) $1 \( -type f -o -type l \) $2)), \
   677         $(filter $(addsuffix /%,$(patsubst %/,%,$1)) $1,$(FIND_CACHE)))
   677       $(filter $(addsuffix /%,$(patsubst %/,%,$1)) $1,$(FIND_CACHE)))
   678   endef
   678   endef
   679 
   679 
   680 else
   680 else
   681   # If CacheFind is disabled, just run the find command.
   681   # If CacheFind is disabled, just run the find command.
   682   # Param 1 - Dirs to find in
   682   # Param 1 - Dirs to find in