Fix html_dir_files in droiddoc.mk
Previously html_dir_files includes every file in $(LOCAL_PATH), if $(LOCAL_DROIDDOC_HTML_DIR) isn't set. Change-Id: I3c249e5f4a0f52f71edd92862361c1dc4ab6bed7
This commit is contained in:
parent
45518095f5
commit
3bb5d8bca7
|
@ -131,18 +131,17 @@ $(full_target): PRIVATE_CUSTOM_TEMPLATE_DIR := $(LOCAL_DROIDDOC_CUSTOM_TEMPLATE_
|
|||
$(full_target): PRIVATE_IN_CUSTOM_ASSET_DIR := $(LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR)/$(LOCAL_DROIDDOC_CUSTOM_ASSET_DIR)
|
||||
$(full_target): PRIVATE_OUT_ASSET_DIR := $(out_dir)/$(LOCAL_DROIDDOC_ASSET_DIR)
|
||||
$(full_target): PRIVATE_OUT_CUSTOM_ASSET_DIR := $(out_dir)/$(LOCAL_DROIDDOC_CUSTOM_ASSET_DIR)
|
||||
|
||||
html_dir_files :=
|
||||
ifneq ($(strip $(LOCAL_DROIDDOC_HTML_DIR)),)
|
||||
$(full_target): PRIVATE_DROIDDOC_HTML_DIR := -htmldir $(LOCAL_PATH)/$(LOCAL_DROIDDOC_HTML_DIR)
|
||||
html_dir_files := $(shell find $(LOCAL_PATH)/$(LOCAL_DROIDDOC_HTML_DIR) -type f)
|
||||
else
|
||||
$(full_target): PRIVATE_DROIDDOC_HTML_DIR :=
|
||||
endif
|
||||
ifneq ($(strip $(LOCAL_ADDITIONAL_HTML_DIR)),)
|
||||
$(full_target): PRIVATE_ADDITIONAL_HTML_DIR := -htmldir2 $(LOCAL_PATH)/$(LOCAL_ADDITIONAL_HTML_DIR)
|
||||
else
|
||||
$(full_target): PRIVATE_ADDITIONAL_HTML_DIR :=
|
||||
$(full_target): PRIVATE_DROIDDOC_HTML_DIR :=
|
||||
endif
|
||||
ifneq ($(strip $(LOCAL_ADDITIONAL_HTML_DIR)),)
|
||||
$(full_target): PRIVATE_ADDITIONAL_HTML_DIR := -htmldir2 $(LOCAL_PATH)/$(LOCAL_ADDITIONAL_HTML_DIR)
|
||||
html_dir_files += $(shell find $(LOCAL_PATH)/$(LOCAL_ADDITIONAL_HTML_DIR) -type f)
|
||||
else
|
||||
$(full_target): PRIVATE_ADDITIONAL_HTML_DIR :=
|
||||
endif
|
||||
|
@ -150,8 +149,6 @@ endif
|
|||
# TODO: not clear if this is used any more
|
||||
$(full_target): PRIVATE_LOCAL_PATH := $(LOCAL_PATH)
|
||||
|
||||
html_dir_files := $(shell find $(LOCAL_PATH)/$(LOCAL_DROIDDOC_HTML_DIR) -type f)
|
||||
|
||||
$(full_target): $(full_src_files) $(droiddoc_templates) $(droiddoc) $(html_dir_files) $(full_java_lib_deps) $(LOCAL_ADDITIONAL_DEPENDENCIES)
|
||||
@echo Docs droiddoc: $(PRIVATE_OUT_DIR)
|
||||
$(hide) mkdir -p $(dir $@)
|
||||
|
|
Loading…
Reference in New Issue