common/makefiles/JavaCompilation.gmk

changeset 611
d3d9ab8ee7b0
parent 607
12782ec1da5f
child 635
907a926d3c96
equal deleted inserted replaced
610:dea045cc48ca 611:d3d9ab8ee7b0
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))

mercurial