aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2010-07-23 16:42:13 -0700
committerYing Wang <wangying@google.com>2010-07-23 16:42:13 -0700
commitefb21682668cfcd924560cb03a747d07d73892aa (patch)
treef4afae8486fa88b2bd9e5c0cd31e2f4ef3e846cd
parent121a78733a9ff105efabbff3314548f973a9105b (diff)
downloadbuild-efb21682668cfcd924560cb03a747d07d73892aa.tar.gz
Dist apkcerts.txt for unbundled builds
Change-Id: Ic381d846f020dc43f48f43581c0db5721f2e36f7
-rw-r--r--core/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/Makefile b/core/Makefile
index 852a716002..25d9171d8c 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -206,7 +206,12 @@ APKCERTS_FILE := $(intermediates)/$(name).txt
# but it should guarantee that the apkcerts file is rebuilt
# if any packages change which certs they're signed with.
all_built_packages := $(foreach p,$(PACKAGES),$(ALL_MODULES.$(p).BUILT))
+ifneq ($(TARGET_BUILD_APPS),)
+# We don't need to really build all the modules for apps_only build.
+$(APKCERTS_FILE):
+else
$(APKCERTS_FILE): $(all_built_packages)
+endif
@echo APK certs list: $@
@mkdir -p $(dir $@)
@rm -f $@
@@ -220,6 +225,8 @@ $(APKCERTS_FILE): $(all_built_packages)
.PHONY: apkcerts-list
apkcerts-list: $(APKCERTS_FILE)
+$(call dist-for-goals, apps_only, $(APKCERTS_FILE):apkcerts.txt)
+
# -----------------------------------------------------------------
# module info file
ifdef CREATE_MODULE_INFO_FILE