Make it so if you say LOCAL_UNINSTALLABLE_MODULE := true for a docs build, it won't try to dist it.

Change-Id: Iff8a7b6438d392c5b4c425337b84cfa9bc90f282
This commit is contained in:
Joe Onorato 2010-09-01 10:39:50 -07:00
parent fe648a9f58
commit aaa5d11cb3
1 changed files with 4 additions and 0 deletions

View File

@ -210,6 +210,8 @@ ALL_DOCS += $(full_target)
.PHONY: $(LOCAL_MODULE)-docs
$(LOCAL_MODULE)-docs : $(full_target)
ifeq ($(strip $(LOCAL_UNINSTALLABLE_MODULE)),)
# Define a rule to create a zip of these docs.
out_zip := $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip
$(out_zip): PRIVATE_DOCS_DIR := $(out_dir)
@ -220,3 +222,5 @@ $(out_zip): $(full_target)
$(hide) ( F=$$(pwd)/$@ ; cd $(PRIVATE_DOCS_DIR) && zip -rq $$F * )
$(call dist-for-goals,docs,$(out_zip))
endif