summaryrefslogtreecommitdiffstats
path: root/core/definitions.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2011-10-11 10:11:44 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-10-11 10:11:44 -0700
commitd89452976b6d476896747a0136a1ad40e514e162 (patch)
tree89d15664844282658f775da9cf94dc624883b99b /core/definitions.mk
parent861348a4be2355e49f090271d7410fa850d5c7f8 (diff)
parent6e7db38de7cfc905413e27cc8967909727db3022 (diff)
downloadbuild-d89452976b6d476896747a0136a1ad40e514e162.zip
build-d89452976b6d476896747a0136a1ad40e514e162.tar.gz
build-d89452976b6d476896747a0136a1ad40e514e162.tar.bz2
Merge "Use shell variable to eliminate $(eval) in commands."
Diffstat (limited to 'core/definitions.mk')
-rw-r--r--core/definitions.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/definitions.mk b/core/definitions.mk
index 1afc0f4..99682fd 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1585,10 +1585,9 @@ endef
define add-dex-to-package
$(if $(filter classes.dex,$(notdir $(PRIVATE_DEX_FILE))),\
$(hide) $(AAPT) add -k $@ $(PRIVATE_DEX_FILE),\
-$(eval _adtp_classes.dex := $(dir $(PRIVATE_DEX_FILE))/classes.dex)\
-$(hide) cp $(PRIVATE_DEX_FILE) $(_adtp_classes.dex) && \
-$(AAPT) add -k $@ $(_adtp_classes.dex) && \
-rm -f $(_adtp_classes.dex))
+$(hide) _adtp_classes_dex=$(dir $(PRIVATE_DEX_FILE))classes.dex; \
+cp $(PRIVATE_DEX_FILE) $$_adtp_classes_dex && \
+$(AAPT) add -k $@ $$_adtp_classes_dex && rm -f $$_adtp_classes_dex)
endef
define add-java-resources-to-package