141 # transfered in make variables. When the macro is run in a different makefile than the |
141 # transfered in make variables. When the macro is run in a different makefile than the |
142 # java compilation, the dependencies need to be found in the filesystem. |
142 # java compilation, the dependencies need to be found in the filesystem. |
143 ifneq (,$2) |
143 ifneq (,$2) |
144 $1_DEPS:=$2 |
144 $1_DEPS:=$2 |
145 else |
145 else |
146 $1_DEPS:=$$(filter $$(addprefix %,$$($1_FIND_PATTERNS)),\ |
146 $1_DEPS:=$$(filter $$(addprefix %,$$($1_SUFFIXES)),\ |
147 $$(call CacheFind $$($1_SRCS))) |
147 $$(call CacheFind,$$($1_SRCS))) |
148 ifneq (,$$($1_GREP_INCLUDE_PATTERNS)) |
148 ifneq (,$$($1_GREP_INCLUDE_PATTERNS)) |
149 $1_DEPS:=$$(filter $$(addsuffix %,$$($1_GREP_INCLUDE_PATTERNS)),$$($1_DEPS)) |
149 $1_DEPS:=$$(filter $$(addsuffix %,$$($1_GREP_INCLUDE_PATTERNS)),$$($1_DEPS)) |
150 endif |
150 endif |
151 ifneq (,$$($1_GREP_EXCLUDE_PATTERNS)) |
151 ifneq (,$$($1_GREP_EXCLUDE_PATTERNS)) |
152 $1_DEPS:=$$(filter-out $$(addsuffix %,$$($1_GREP_EXCLUDE_PATTERNS)),$$($1_DEPS)) |
152 $1_DEPS:=$$(filter-out $$(addsuffix %,$$($1_GREP_EXCLUDE_PATTERNS)),$$($1_DEPS)) |