Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71c58092 authored by Ying Wang's avatar Ying Wang
Browse files

Phony target $(LOCAL_MODULE) covers all multilib variants.

Bug: 27760875
Change-Id: Ie59e2c36964fa736b17fb4185563c08a8cb75b80
parent 37aa85e8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -286,6 +286,12 @@ $(LOCAL_INTERMEDIATE_TARGETS) : PRIVATE_MODULE:= $(my_register_name)
.PHONY: $(my_register_name)
$(my_register_name): $(LOCAL_BUILT_MODULE) $(LOCAL_INSTALLED_MODULE)

ifneq ($(my_register_name),$(LOCAL_MODULE))
# $(LOCAL_MODULE) covers all the multilib targets.
.PHONY: $(LOCAL_MODULE)
$(LOCAL_MODULE) : $(my_register_name)
endif

# Set up phony targets that covers all modules under the given paths.
# This allows us to build everything in given paths by running mmma/mma.
my_path_components := $(subst /,$(space),$(LOCAL_PATH))