common/makefiles/JavaCompilation.gmk
changeset 20650 b4fd4aee353c
parent 20638 d4673f4b6e2f
parent 20645 6170a286f879
child 21054 dac7de31b5b5
--- a/common/makefiles/JavaCompilation.gmk	Tue Oct 22 13:56:11 2013 -0700
+++ b/common/makefiles/JavaCompilation.gmk	Tue Oct 22 14:53:08 2013 -0700
@@ -266,8 +266,12 @@
   endif
 
   # Find all files in the source tree.
-  $1_ALL_SRCS := $$(call not-containing,_the., \
-      $$(filter $$(addprefix %,$$($1_SUFFIXES)),$$(call CacheFind,$$($1_FIND_LIST))))
+  $1_ALL_SRCS := $$(call not-containing,_the.,$$(call CacheFind,$$($1_FIND_LIST)))
+
+  # Filter on suffixes if set
+  ifneq ($$($1_SUFFIXES),)
+    $1_ALL_SRCS := $$(filter $$(addprefix %, $$($1_SUFFIXES)), $$($1_ALL_SRCS))
+  endif
 
   ifneq ($$($1_INCLUDES),)
     ifneq ($$($1_SUFFIXES),)