summaryrefslogtreecommitdiffstats
path: root/core/main.mk
diff options
context:
space:
mode:
authorC. Sean Young <csyoung@google.com>2015-06-09 12:35:45 -0500
committerC. Sean Young <csyoung@google.com>2015-06-10 13:00:13 -0500
commitcf4699895ad99b83a24e376007750e2c2c0502f6 (patch)
tree46499f5383c74c2d89a1ead85e42340788f30604 /core/main.mk
parent58b3ee286363ee37f8f0bb84f6acefaf96102fef (diff)
downloadbuild-cf4699895ad99b83a24e376007750e2c2c0502f6.zip
build-cf4699895ad99b83a24e376007750e2c2c0502f6.tar.gz
build-cf4699895ad99b83a24e376007750e2c2c0502f6.tar.bz2
Add new variable SCAN_EXCLUDE_DIRS; specifies directories to exclude when searching source tree.
These directories are excluded in addition to OUT_DIR. This can be useful if your build system has other output directories beyond what OUT_DIR is set to. Change-Id: I6d98a85bcc8c89279e939406a7fec32547e8922f
Diffstat (limited to 'core/main.mk')
-rw-r--r--core/main.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/main.mk b/core/main.mk
index 9d6e233..17099a3 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -513,7 +513,7 @@ ifneq ($(dont_bother),true)
# Can't use first-makefiles-under here because
# --mindepth=2 makes the prunes not work.
subdir_makefiles := \
- $(shell build/tools/findleaves.py --prune=$(OUT_DIR) --prune=.repo --prune=.git $(subdirs) Android.mk)
+ $(shell build/tools/findleaves.py $(FIND_LEAVES_EXCLUDES) $(subdirs) Android.mk)
$(foreach mk, $(subdir_makefiles), $(info including $(mk) ...)$(eval include $(mk)))