8150741: make <module> not equivalent to make <module-dependencies> <module>
authorerikj
Mon, 23 Sep 2019 09:00:28 -0700
changeset 58269 7a8de392f9e1
parent 58268 bc696d87d032
child 58270 2921ee5e9881
8150741: make <module> not equivalent to make <module-dependencies> <module> Reviewed-by: mchung
make/Main.gmk
--- a/make/Main.gmk	Mon Sep 23 16:24:32 2019 +0200
+++ b/make/Main.gmk	Mon Sep 23 09:00:28 2019 -0700
@@ -707,6 +707,8 @@
   $(foreach m, $(JAVA_MODULES), \
       $(eval $m-java: $(addsuffix -java, $(filter $(JAVA_MODULES), \
       $(call FindDepsForModule,$m)))))
+  # Declare dependencies between the module meta targets
+  $(foreach m, $(ALL_MODULES), $(eval $m: $(call FindDepsForModule,$m)))
 
   # Declare dependencies between <module>-rmic to <module>-java
   $(foreach m, $(RMIC_MODULES), $(eval $m-rmic: $m-java))