summaryrefslogtreecommitdiffstats
path: root/core/cleanbuild.mk
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2012-09-26 16:00:54 -0700
committerYing Wang <wangying@google.com>2012-09-28 10:23:52 -0700
commit9cb3731a773615a1809e85c9ad80494d10200338 (patch)
tree71d00c4b6a55148db73ff931a400c71d9323aa96 /core/cleanbuild.mk
parentedc24bb89c87d88c2da530812d64ae60d59a53e9 (diff)
downloadbuild-9cb3731a773615a1809e85c9ad80494d10200338.zip
build-9cb3731a773615a1809e85c9ad80494d10200338.tar.gz
build-9cb3731a773615a1809e85c9ad80494d10200338.tar.bz2
Run clean steps in only given paths when using mm/mmm
To speed up mm/mmm start time. At the same time, we should copy over the other clean steps. Bug: 7186768 Change-Id: I250e64256343afe788d79817af36eafaadb47028
Diffstat (limited to 'core/cleanbuild.mk')
-rw-r--r--core/cleanbuild.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/cleanbuild.mk b/core/cleanbuild.mk
index e6db5cb..1b662b9 100644
--- a/core/cleanbuild.mk
+++ b/core/cleanbuild.mk
@@ -78,6 +78,10 @@ else
$(info Clean step: $(INTERNAL_CLEAN_STEP.$(step))) \
$(shell $(INTERNAL_CLEAN_STEP.$(step))) \
)
+ # If we are running mm/mmm, we should copy over the other clean steps too.
+ ifneq ($(ONE_SHOT_MAKEFILE),)
+ INTERNAL_CLEAN_STEPS := $(strip $(CURRENT_CLEAN_STEPS) $(steps))
+ endif
steps :=
endif
CURRENT_CLEAN_BUILD_VERSION :=