diff options
author | Ying Wang <wangying@google.com> | 2012-09-26 16:00:54 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2012-09-28 10:23:52 -0700 |
commit | 9cb3731a773615a1809e85c9ad80494d10200338 (patch) | |
tree | 71d00c4b6a55148db73ff931a400c71d9323aa96 /core/cleanspec.mk | |
parent | edc24bb89c87d88c2da530812d64ae60d59a53e9 (diff) | |
download | build-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/cleanspec.mk')
-rw-r--r-- | core/cleanspec.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/cleanspec.mk b/core/cleanspec.mk index d4a8eed..a3eb7cd 100644 --- a/core/cleanspec.mk +++ b/core/cleanspec.mk @@ -63,7 +63,13 @@ INTERNAL_CLEAN_BUILD_VERSION := 6 # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************ +ifneq ($(ONE_SHOT_MAKEFILE),) +cs_subdirs := $(dir $(ONE_SHOT_MAKEFILE)) +else +cs_subdirs := . +endif subdir_cleanspecs := \ - $(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git . CleanSpec.mk) + $(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(cs_subdirs) CleanSpec.mk) include $(subdir_cleanspecs) +cs_subdirs := subdir_cleanspecs := |