OSDN Git Service

Dist unbundled app.
authorYing Wang <wangying@google.com>
Tue, 11 May 2010 21:36:32 +0000 (14:36 -0700)
committerYing Wang <wangying@google.com>
Thu, 20 May 2010 00:07:00 +0000 (17:07 -0700)
Change-Id: Ib4c01b2623ec1059b66c541cc35eae4d2d811ef3
http://b/issue?id=2667113

core/main.mk

index 6287087..b6c8c14 100644 (file)
@@ -702,6 +702,7 @@ tests: droidcore
 
 # Dist for droid if droid is among the cmd goals, or no cmd goal is given.
 ifneq ($(filter droid,$(MAKECMDGOALS))$(filter ||,|$(filter-out $(INTERNAL_MODIFIER_TARGETS),$(MAKECMDGOALS))|),)
+ifneq ($(strip $(is_unbundled_app_build)),true)
 $(call dist-for-goals, droid, \
        $(INTERNAL_UPDATE_PACKAGE_TARGET) \
        $(INTERNAL_OTA_PACKAGE_TARGET) \
@@ -732,6 +733,15 @@ $(call dist-for-goals, droid, \
        $(BUILT_TESTS_ZIP_PACKAGE) \
  )
 endif  # tests
+
+else # is_unbundled_app_build
+# dist the unbundled app.
+ifdef UNBUNDLED_APP
+  $(call dist-for-goals,droid, \
+    $(ALL_MODULES.$(UNBUNDLED_APP).INSTALLED) \
+  )
+endif # UNBUNDLED_APP
+endif # is_unbundled_app_build
 endif  # droid in $(MAKECMDGOALS)
 
 .PHONY: docs