equal
deleted
inserted
replaced
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 |