Install symlinks when using shortcut phony targets
Make symlinks an order-only dependency of the module name phony target
so that they get installed with make module or make MODULES-IN-path.
Test: mmma -j art/dalvikvm, remove symlink in $OUT and retry
Change-Id: Iae472a1c8fa1e8386cc9556cfe819bd4fca99428
diff --git a/core/base_rules.mk b/core/base_rules.mk
index cdffcc1..9bb368b 100644
--- a/core/base_rules.mk
+++ b/core/base_rules.mk
@@ -374,6 +374,8 @@
$(foreach symlink,$(my_installed_symlinks),\
$(call symlink-file,$(LOCAL_INSTALLED_MODULE),$(my_installed_module_stem),$(symlink)))
+$(my_register_name) : | $(my_installed_symlinks)
+
endif # !LOCAL_UNINSTALLABLE_MODULE
###########################################################