diff options
author | Jean-Baptiste Queru <jbq@google.com> | 2009-12-17 17:47:28 -0800 |
---|---|---|
committer | Jean-Baptiste Queru <jbq@google.com> | 2009-12-18 09:02:13 -0800 |
commit | 0a3cfdc853efb7a57b06def3bd95127398366acb (patch) | |
tree | 987ef9f241c978307a74d2cfb2ef85696aa62e27 /core/definitions.mk | |
parent | a709a1b2a47432bde2189e7fe32b8a02ffdd3fcc (diff) | |
download | build-0a3cfdc853efb7a57b06def3bd95127398366acb.zip build-0a3cfdc853efb7a57b06def3bd95127398366acb.tar.gz build-0a3cfdc853efb7a57b06def3bd95127398366acb.tar.bz2 |
Add all-html-files-under
This allows to run droiddoc on only a specific set of subdirectories
instead of using all subdirectories.
Change-Id: I6b5daa31f6ce6801705a5c87bd05ea0e4e8c5d88
Diffstat (limited to 'core/definitions.mk')
-rw-r--r-- | core/definitions.mk | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/core/definitions.mk b/core/definitions.mk index 038bf49..a355c71 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -223,12 +223,25 @@ $(call all-Iaidl-files-under,.) endef ########################################################### +## Find all of the html files under the named directories. +## Meant to be used like: +## SRC_FILES := $(call all-html-files-under,src tests) +########################################################### + +define all-html-files-under +$(patsubst ./%,%, \ + $(shell cd $(LOCAL_PATH) ; \ + find $(1) -name "*.html" -and -not -name ".*") \ + ) +endef + +########################################################### ## Find all of the html files from here. Meant to be used like: ## SRC_FILES := $(call all-subdir-html-files) ########################################################### define all-subdir-html-files -$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) ; find . -name "*.html")) +$(call all-html-files-under,.) endef ########################################################### |