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
This commit is contained in:
@@ -222,13 +222,26 @@ define all-subdir-Iaidl-files
|
|||||||
$(call all-Iaidl-files-under,.)
|
$(call all-Iaidl-files-under,.)
|
||||||
endef
|
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:
|
## Find all of the html files from here. Meant to be used like:
|
||||||
## SRC_FILES := $(call all-subdir-html-files)
|
## SRC_FILES := $(call all-subdir-html-files)
|
||||||
###########################################################
|
###########################################################
|
||||||
|
|
||||||
define all-subdir-html-files
|
define all-subdir-html-files
|
||||||
$(patsubst ./%,%,$(shell cd $(LOCAL_PATH) ; find . -name "*.html"))
|
$(call all-html-files-under,.)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
###########################################################
|
###########################################################
|
||||||
|
Reference in New Issue
Block a user