summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2013-08-27 15:04:57 -0700
committerYing Wang <wangying@google.com>2013-08-27 15:04:57 -0700
commit495f68402493de82606b8c06213bae5bb1156a8b (patch)
tree9df03802ea9a83b488a7d4ad3a8ce0d4d8f826d2 /core
parent10d2e0cd9119d25ba58d27004c18f4b894992a80 (diff)
downloadbuild-495f68402493de82606b8c06213bae5bb1156a8b.zip
build-495f68402493de82606b8c06213bae5bb1156a8b.tar.gz
build-495f68402493de82606b8c06213bae5bb1156a8b.tar.bz2
In apps_only build dist a module only if it has a BUILT file.
This allows you to specify a PHONY target in TARGET_BUILD_APPS. Change-Id: Idd813cd0dbdb14c705fbd3187596d4c64b99d045
Diffstat (limited to 'core')
-rw-r--r--core/main.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/main.mk b/core/main.mk
index 0b43efe..ba67189 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -819,7 +819,7 @@ ifneq ($(TARGET_BUILD_APPS),)
# For uninstallable modules such as static Java library, we have to dist the built file,
# as <module_name>.<suffix>
apps_only_dist_built_files := $(foreach m,$(unbundled_build_modules),$(if $(ALL_MODULES.$(m).INSTALLED),,\
- $(ALL_MODULES.$(m).BUILT):$(m)$(suffix $(ALL_MODULES.$(m).BUILT))))
+ $(if $(ALL_MODULES.$(m).BUILT),$(ALL_MODULES.$(m).BUILT):$(m)$(suffix $(ALL_MODULES.$(m).BUILT)))))
$(call dist-for-goals,apps_only, $(apps_only_dist_built_files))
ifeq ($(EMMA_INSTRUMENT),true)