summaryrefslogtreecommitdiffstats
path: root/core/cleanbuild.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2015-01-06 16:49:20 -0800
committerYing Wang <wangying@google.com>2015-01-06 16:49:20 -0800
commit961096fadaccc38f38fb840ce621c2a1353b263c (patch)
tree78b62800d01d05fb1cc2a23fe40490ca3ea10170 /core/cleanbuild.mk
parentef789fa152d0a7649038b41b9ecf7adb1ad4d012 (diff)
downloadbuild-961096fadaccc38f38fb840ce621c2a1353b263c.zip
build-961096fadaccc38f38fb840ce621c2a1353b263c.tar.gz
build-961096fadaccc38f38fb840ce621c2a1353b263c.tar.bz2
Remove ancient SDK cleanbuild rule
In anceint time we didn't have an "sdk" product so that we had to run "make sdk" in a device product configuration. Now we have SDK specific product configuration and we don't do "make sdk" in device product configuration. Change-Id: I40d58d51261498017bbe7e574c8128afc77e9b96
Diffstat (limited to 'core/cleanbuild.mk')
-rw-r--r--core/cleanbuild.mk14
1 files changed, 1 insertions, 13 deletions
diff --git a/core/cleanbuild.mk b/core/cleanbuild.mk
index c820ad5..cf980d8 100644
--- a/core/cleanbuild.mk
+++ b/core/cleanbuild.mk
@@ -132,23 +132,11 @@ endif # if not ONE_SHOT_MAKEFILE dont_bother
previous_build_config_file := $(PRODUCT_OUT)/previous_build_config.mk
-# TODO: this special case for the sdk is only necessary while "sdk"
-# is a valid make target. Eventually, it will just be a product, at
-# which point TARGET_PRODUCT will handle it and we can avoid this check
-# of MAKECMDGOALS. The "addprefix" is just to keep things pretty.
-ifneq ($(TARGET_PRODUCT),sdk)
- building_sdk := $(addprefix -,$(filter sdk,$(MAKECMDGOALS)))
-else
- # Don't bother with this extra part when explicitly building the sdk product.
- building_sdk :=
-endif
-
# A change in the list of aapt configs warrants an installclean, too.
aapt_config_list := $(strip $(PRODUCT_AAPT_CONFIG) $(PRODUCT_AAPT_PREF_CONFIG))
current_build_config := \
- $(TARGET_PRODUCT)-$(TARGET_BUILD_VARIANT)$(building_sdk)-{$(aapt_config_list)}
-building_sdk :=
+ $(TARGET_PRODUCT)-$(TARGET_BUILD_VARIANT)-{$(aapt_config_list)}
aapt_config_list :=
force_installclean := false