summaryrefslogtreecommitdiffstats
path: root/core/cleanbuild.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-02 22:54:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-02 22:54:15 -0800
commita9b22497534d404bf956cdcc0941e20057219a2a (patch)
tree5492688f3ba95821b3b0f13bc42c0b68c5d3f99c /core/cleanbuild.mk
parent4d23ccc023c8b98eb97a7cce820aa80bff2f3522 (diff)
downloadbuild-a9b22497534d404bf956cdcc0941e20057219a2a.zip
build-a9b22497534d404bf956cdcc0941e20057219a2a.tar.gz
build-a9b22497534d404bf956cdcc0941e20057219a2a.tar.bz2
auto import from //depot/cupcake/@137055
Diffstat (limited to 'core/cleanbuild.mk')
-rw-r--r--core/cleanbuild.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/cleanbuild.mk b/core/cleanbuild.mk
index 01bf9a5..50b56f9 100644
--- a/core/cleanbuild.mk
+++ b/core/cleanbuild.mk
@@ -123,7 +123,11 @@ PREVIOUS_BUILD_CONFIG := $(strip $(PREVIOUS_BUILD_CONFIG))
ifdef PREVIOUS_BUILD_CONFIG
ifneq "$(current_build_config)" "$(PREVIOUS_BUILD_CONFIG)"
$(info *** Build configuration changed: "$(PREVIOUS_BUILD_CONFIG)" -> "$(current_build_config)")
- force_installclean := true
+ ifneq ($(DISABLE_AUTO_INSTALLCLEAN),true)
+ force_installclean := true
+ else
+ $(info DISABLE_AUTO_INSTALLCLEAN is set; skipping auto-clean. Your tree may be in an inconsistent state.)
+ endif
endif
endif # else, this is the first build, so no need to clean.
PREVIOUS_BUILD_CONFIG :=