Merge "Don't create prebuilt SDK modules when building them from source"
diff --git a/current/Android.mk b/current/Android.mk
index 8952578..ac2a52a 100644
--- a/current/Android.mk
+++ b/current/Android.mk
@@ -35,7 +35,7 @@
 
 # For apps (unbundled) build, replace the typical
 # make target artifacts with prebuilts.
-ifneq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)))
+ifneq (,$(TARGET_BUILD_APPS_USE_PREBUILT_SDK)$(filter true,$(TARGET_BUILD_PDK)))
     # Set up prebuilts for Multidex library artifacts.
     multidex_jars := \
       $(patsubst $(LOCAL_PATH)/%,%,\