Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2008 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 16 | |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 17 | ## |
| 18 | ## |
| 19 | ## Common to both droiddoc and javadoc |
| 20 | ## |
| 21 | ## |
| 22 | |
| 23 | LOCAL_IS_HOST_MODULE := $(call true-or-empty,$(LOCAL_IS_HOST_MODULE)) |
| 24 | ifeq ($(LOCAL_IS_HOST_MODULE),true) |
Ying Wang | 13d6950 | 2012-11-01 17:22:33 -0700 | [diff] [blame] | 25 | my_prefix := HOST_ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 26 | else |
Ying Wang | 13d6950 | 2012-11-01 17:22:33 -0700 | [diff] [blame] | 27 | my_prefix := TARGET_ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 28 | endif |
| 29 | |
| 30 | LOCAL_MODULE_CLASS := $(strip $(LOCAL_MODULE_CLASS)) |
| 31 | ifndef LOCAL_MODULE_CLASS |
| 32 | $(error $(LOCAL_PATH): LOCAL_MODULE_CLASS not defined) |
| 33 | endif |
| 34 | |
| 35 | full_src_files := $(patsubst %,$(LOCAL_PATH)/%,$(LOCAL_SRC_FILES)) |
| 36 | out_dir := $(OUT_DOCS)/$(LOCAL_MODULE) |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 37 | full_target := $(call doc-timestamp-for,$(LOCAL_MODULE)) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 38 | |
| 39 | ifeq ($(LOCAL_DROIDDOC_SOURCE_PATH),) |
| 40 | LOCAL_DROIDDOC_SOURCE_PATH := $(LOCAL_PATH) |
| 41 | endif |
| 42 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 43 | ifeq ($(LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR),) |
Dirk Dougherty | d77248a | 2010-08-25 15:07:39 -0700 | [diff] [blame] | 44 | LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR := $(SRC_DROIDDOC_DIR)/$(LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 45 | endif |
| 46 | |
| 47 | ifeq ($(LOCAL_DROIDDOC_ASSET_DIR),) |
| 48 | LOCAL_DROIDDOC_ASSET_DIR := assets |
| 49 | endif |
| 50 | ifeq ($(LOCAL_DROIDDOC_CUSTOM_ASSET_DIR),) |
| 51 | LOCAL_DROIDDOC_CUSTOM_ASSET_DIR := assets |
| 52 | endif |
| 53 | |
Ying Wang | 584d8ad | 2014-04-07 15:14:50 -0700 | [diff] [blame] | 54 | ifeq ($(LOCAL_IS_HOST_MODULE),true) |
| 55 | $(full_target): PRIVATE_BOOTCLASSPATH := |
| 56 | else |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 57 | |
Ying Wang | 3f45b3c | 2012-04-02 18:21:36 -0700 | [diff] [blame] | 58 | ifneq ($(LOCAL_SDK_VERSION),) |
Ying Wang | 0ec188f | 2012-05-10 17:25:51 -0700 | [diff] [blame] | 59 | ifeq ($(LOCAL_SDK_VERSION)$(TARGET_BUILD_APPS),current) |
| 60 | # Use android_stubs_current if LOCAL_SDK_VERSION is current and no TARGET_BUILD_APPS. |
Ying Wang | 3f45b3c | 2012-04-02 18:21:36 -0700 | [diff] [blame] | 61 | LOCAL_JAVA_LIBRARIES := android_stubs_current $(LOCAL_JAVA_LIBRARIES) |
Ying Wang | 584d8ad | 2014-04-07 15:14:50 -0700 | [diff] [blame] | 62 | $(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, android_stubs_current) |
Ying Wang | 3f45b3c | 2012-04-02 18:21:36 -0700 | [diff] [blame] | 63 | else |
| 64 | LOCAL_JAVA_LIBRARIES := sdk_v$(LOCAL_SDK_VERSION) $(LOCAL_JAVA_LIBRARIES) |
Ying Wang | 584d8ad | 2014-04-07 15:14:50 -0700 | [diff] [blame] | 65 | $(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, sdk_v$(LOCAL_SDK_VERSION)) |
Ying Wang | 3f45b3c | 2012-04-02 18:21:36 -0700 | [diff] [blame] | 66 | endif |
| 67 | else |
Jeff Brown | ae859f9 | 2013-07-17 20:29:51 -0700 | [diff] [blame] | 68 | LOCAL_JAVA_LIBRARIES := core ext framework framework2 $(LOCAL_JAVA_LIBRARIES) |
Ying Wang | 584d8ad | 2014-04-07 15:14:50 -0700 | [diff] [blame] | 69 | $(full_target): PRIVATE_BOOTCLASSPATH := $(call java-lib-files, core) |
Ying Wang | 3f45b3c | 2012-04-02 18:21:36 -0700 | [diff] [blame] | 70 | endif # LOCAL_SDK_VERSION |
| 71 | LOCAL_JAVA_LIBRARIES := $(sort $(LOCAL_JAVA_LIBRARIES)) |
| 72 | |
Ying Wang | 8578cab | 2013-06-25 12:34:11 -0700 | [diff] [blame] | 73 | endif # !LOCAL_IS_HOST_MODULE |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 74 | |
Ying Wang | 8578cab | 2013-06-25 12:34:11 -0700 | [diff] [blame] | 75 | full_java_libs := $(call java-lib-files,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) $(LOCAL_CLASSPATH) |
| 76 | full_java_lib_deps := $(call java-lib-deps,$(LOCAL_JAVA_LIBRARIES),$(LOCAL_IS_HOST_MODULE)) $(LOCAL_CLASSPATH) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 77 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 78 | $(full_target): PRIVATE_CLASSPATH := $(subst $(space),:,$(full_java_libs)) |
| 79 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 80 | |
Ying Wang | fb79087 | 2011-05-17 14:48:10 -0700 | [diff] [blame] | 81 | intermediates.COMMON := $(call local-intermediates-dir,COMMON) |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 82 | |
| 83 | $(full_target): PRIVATE_SOURCE_PATH := $(call normalize-path-list,$(LOCAL_DROIDDOC_SOURCE_PATH)) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 84 | $(full_target): PRIVATE_JAVA_FILES := $(filter %.java,$(full_src_files)) |
| 85 | $(full_target): PRIVATE_JAVA_FILES += $(addprefix $($(my_prefix)OUT_COMMON_INTERMEDIATES)/, $(filter %.java,$(LOCAL_INTERMEDIATE_SOURCES))) |
Ying Wang | fb79087 | 2011-05-17 14:48:10 -0700 | [diff] [blame] | 86 | $(full_target): PRIVATE_SOURCE_INTERMEDIATES_DIR := $(intermediates.COMMON)/src |
| 87 | $(full_target): PRIVATE_SRC_LIST_FILE := $(intermediates.COMMON)/droiddoc-src-list |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 88 | |
| 89 | ifneq ($(strip $(LOCAL_ADDITIONAL_JAVA_DIR)),) |
| 90 | $(full_target): PRIVATE_ADDITIONAL_JAVA_DIR := $(LOCAL_ADDITIONAL_JAVA_DIR) |
| 91 | endif |
| 92 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 93 | $(full_target): PRIVATE_OUT_DIR := $(out_dir) |
| 94 | $(full_target): PRIVATE_DROIDDOC_OPTIONS := $(LOCAL_DROIDDOC_OPTIONS) |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 95 | |
| 96 | # Lists the input files for the doc build into a text file |
| 97 | # suitable for the @ syntax of javadoc. |
| 98 | # $(1): the file to create |
| 99 | # $(2): files to include |
| 100 | # $(3): list of directories to search for java files in |
| 101 | define prepare-doc-source-list |
| 102 | $(hide) mkdir -p $(dir $(1)) |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 103 | $(call dump-words-to-file, $(2), $(1)) |
| 104 | $(hide) for d in $(3) ; do find $$d -name '*.java' >> $(1) 2> /dev/null ; done ; true |
| 105 | endef |
| 106 | |
| 107 | ifeq (a,b) |
| 108 | $(full_target): PRIVATE_PROFILING_OPTIONS := \ |
| 109 | -J-agentlib:jprofilerti=port=8849 -J-Xbootclasspath/a:/Applications/jprofiler5/bin/agent.jar |
| 110 | endif |
| 111 | |
| 112 | |
| 113 | ifneq ($(strip $(LOCAL_DROIDDOC_USE_STANDARD_DOCLET)),true) |
| 114 | ## |
| 115 | ## |
| 116 | ## droiddoc only |
| 117 | ## |
| 118 | ## |
| 119 | |
| 120 | droiddoc_templates := \ |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 121 | $(shell find $(LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR) -type f) |
| 122 | |
| 123 | droiddoc := \ |
| 124 | $(HOST_JDK_TOOLS_JAR) \ |
Ben Dodson | 1034455 | 2010-08-05 15:42:37 -0700 | [diff] [blame] | 125 | $(HOST_OUT_JAVA_LIBRARIES)/doclava$(COMMON_JAVA_PACKAGE_SUFFIX) |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 126 | |
Ben Dodson | 1034455 | 2010-08-05 15:42:37 -0700 | [diff] [blame] | 127 | $(full_target): PRIVATE_DOCLETPATH := $(HOST_OUT_JAVA_LIBRARIES)/jsilver$(COMMON_JAVA_PACKAGE_SUFFIX):$(HOST_OUT_JAVA_LIBRARIES)/doclava$(COMMON_JAVA_PACKAGE_SUFFIX) |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 128 | $(full_target): PRIVATE_CURRENT_BUILD := -hdf page.build $(BUILD_ID)-$(BUILD_NUMBER) |
| 129 | $(full_target): PRIVATE_CURRENT_TIME := -hdf page.now "$(shell date "+%d %b %Y %k:%M")" |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 130 | $(full_target): PRIVATE_CUSTOM_TEMPLATE_DIR := $(LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 131 | $(full_target): PRIVATE_IN_CUSTOM_ASSET_DIR := $(LOCAL_DROIDDOC_CUSTOM_TEMPLATE_DIR)/$(LOCAL_DROIDDOC_CUSTOM_ASSET_DIR) |
| 132 | $(full_target): PRIVATE_OUT_ASSET_DIR := $(out_dir)/$(LOCAL_DROIDDOC_ASSET_DIR) |
| 133 | $(full_target): PRIVATE_OUT_CUSTOM_ASSET_DIR := $(out_dir)/$(LOCAL_DROIDDOC_CUSTOM_ASSET_DIR) |
Ying Wang | 3bb5d8b | 2014-04-16 11:25:31 -0700 | [diff] [blame] | 134 | |
| 135 | html_dir_files := |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 136 | ifneq ($(strip $(LOCAL_DROIDDOC_HTML_DIR)),) |
Bill Napier | 9a0e98a | 2010-08-27 09:58:29 -0700 | [diff] [blame] | 137 | $(full_target): PRIVATE_DROIDDOC_HTML_DIR := -htmldir $(LOCAL_PATH)/$(LOCAL_DROIDDOC_HTML_DIR) |
Ying Wang | 3bb5d8b | 2014-04-16 11:25:31 -0700 | [diff] [blame] | 138 | html_dir_files := $(shell find $(LOCAL_PATH)/$(LOCAL_DROIDDOC_HTML_DIR) -type f) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 139 | else |
Ying Wang | 3bb5d8b | 2014-04-16 11:25:31 -0700 | [diff] [blame] | 140 | $(full_target): PRIVATE_DROIDDOC_HTML_DIR := |
Dirk Dougherty | 1151ef4 | 2013-02-05 16:45:05 -0800 | [diff] [blame] | 141 | endif |
| 142 | ifneq ($(strip $(LOCAL_ADDITIONAL_HTML_DIR)),) |
| 143 | $(full_target): PRIVATE_ADDITIONAL_HTML_DIR := -htmldir2 $(LOCAL_PATH)/$(LOCAL_ADDITIONAL_HTML_DIR) |
Dirk Dougherty | 9c2336e | 2013-01-28 18:57:30 -0800 | [diff] [blame] | 144 | else |
| 145 | $(full_target): PRIVATE_ADDITIONAL_HTML_DIR := |
| 146 | endif |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 147 | |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 148 | # TODO: not clear if this is used any more |
| 149 | $(full_target): PRIVATE_LOCAL_PATH := $(LOCAL_PATH) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 150 | |
Joe Onorato | f58df74 | 2010-09-16 11:57:19 -0400 | [diff] [blame] | 151 | $(full_target): $(full_src_files) $(droiddoc_templates) $(droiddoc) $(html_dir_files) $(full_java_lib_deps) $(LOCAL_ADDITIONAL_DEPENDENCIES) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 152 | @echo Docs droiddoc: $(PRIVATE_OUT_DIR) |
Ying Wang | b8a256a | 2013-02-22 09:59:17 -0800 | [diff] [blame] | 153 | $(hide) mkdir -p $(dir $@) |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 154 | $(call prepare-doc-source-list,$(PRIVATE_SRC_LIST_FILE),$(PRIVATE_JAVA_FILES), \ |
| 155 | $(PRIVATE_SOURCE_INTERMEDIATES_DIR) $(PRIVATE_ADDITIONAL_JAVA_DIR)) |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 156 | $(hide) ( \ |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 157 | javadoc \ |
Ying Wang | 34e3e17 | 2013-12-10 11:29:25 -0800 | [diff] [blame] | 158 | -encoding UTF-8 \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 159 | \@$(PRIVATE_SRC_LIST_FILE) \ |
Dominic Binks | 86175d2 | 2011-03-09 12:11:19 -0800 | [diff] [blame] | 160 | -J-Xmx1280m \ |
Ying Wang | 5b6b464 | 2014-04-07 15:19:33 -0700 | [diff] [blame] | 161 | -XDignore.symbol.file \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 162 | $(PRIVATE_PROFILING_OPTIONS) \ |
| 163 | -quiet \ |
Ben Dodson | 1034455 | 2010-08-05 15:42:37 -0700 | [diff] [blame] | 164 | -doclet com.google.doclava.Doclava \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 165 | -docletpath $(PRIVATE_DOCLETPATH) \ |
| 166 | -templatedir $(PRIVATE_CUSTOM_TEMPLATE_DIR) \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 167 | $(PRIVATE_DROIDDOC_HTML_DIR) \ |
Dirk Dougherty | 9c2336e | 2013-01-28 18:57:30 -0800 | [diff] [blame] | 168 | $(PRIVATE_ADDITIONAL_HTML_DIR) \ |
Ying Wang | 7b142da | 2010-06-23 20:59:22 -0700 | [diff] [blame] | 169 | $(addprefix -bootclasspath ,$(PRIVATE_BOOTCLASSPATH)) \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 170 | $(addprefix -classpath ,$(PRIVATE_CLASSPATH)) \ |
| 171 | -sourcepath $(PRIVATE_SOURCE_PATH)$(addprefix :,$(PRIVATE_CLASSPATH)) \ |
| 172 | -d $(PRIVATE_OUT_DIR) \ |
| 173 | $(PRIVATE_CURRENT_BUILD) $(PRIVATE_CURRENT_TIME) \ |
| 174 | $(PRIVATE_DROIDDOC_OPTIONS) \ |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 175 | && touch -f $@ \ |
| 176 | ) || (rm -rf $(PRIVATE_OUT_DIR) $(PRIVATE_SRC_LIST_FILE); exit 45) |
| 177 | |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 178 | |
| 179 | |
| 180 | else |
| 181 | ## |
| 182 | ## |
| 183 | ## standard doclet only |
| 184 | ## |
| 185 | ## |
| 186 | $(full_target): $(full_src_files) $(full_java_lib_deps) |
| 187 | @echo Docs javadoc: $(PRIVATE_OUT_DIR) |
Ying Wang | b8a256a | 2013-02-22 09:59:17 -0800 | [diff] [blame] | 188 | @mkdir -p $(dir $@) |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 189 | $(call prepare-doc-source-list,$(PRIVATE_SRC_LIST_FILE),$(PRIVATE_JAVA_FILES), \ |
| 190 | $(PRIVATE_SOURCE_INTERMEDIATES_DIR) $(PRIVATE_ADDITIONAL_JAVA_DIR)) |
| 191 | $(hide) ( \ |
| 192 | javadoc \ |
Ying Wang | 34e3e17 | 2013-12-10 11:29:25 -0800 | [diff] [blame] | 193 | -encoding UTF-8 \ |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 194 | $(PRIVATE_DROIDDOC_OPTIONS) \ |
| 195 | \@$(PRIVATE_SRC_LIST_FILE) \ |
Ying Wang | 24de970 | 2010-06-18 13:18:05 -0700 | [diff] [blame] | 196 | -J-Xmx1024m \ |
Ying Wang | 5b6b464 | 2014-04-07 15:19:33 -0700 | [diff] [blame] | 197 | -XDignore.symbol.file \ |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 198 | $(PRIVATE_PROFILING_OPTIONS) \ |
| 199 | $(addprefix -classpath ,$(PRIVATE_CLASSPATH)) \ |
Narayan Kamath | f122d41 | 2013-10-25 15:55:46 +0100 | [diff] [blame] | 200 | $(addprefix -bootclasspath ,$(PRIVATE_BOOTCLASSPATH)) \ |
Joe Onorato | 64d85d0 | 2009-04-09 19:31:12 -0700 | [diff] [blame] | 201 | -sourcepath $(PRIVATE_SOURCE_PATH)$(addprefix :,$(PRIVATE_CLASSPATH)) \ |
| 202 | -d $(PRIVATE_OUT_DIR) \ |
| 203 | -quiet \ |
| 204 | && touch -f $@ \ |
| 205 | ) || (rm -rf $(PRIVATE_OUT_DIR) $(PRIVATE_SRC_LIST_FILE); exit 45) |
| 206 | |
| 207 | |
| 208 | endif |
| 209 | ## |
| 210 | ## |
| 211 | ## Common to both droiddoc and javadoc |
| 212 | ## |
| 213 | ## |
| 214 | |
| 215 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 216 | ALL_DOCS += $(full_target) |
| 217 | |
| 218 | .PHONY: $(LOCAL_MODULE)-docs |
| 219 | $(LOCAL_MODULE)-docs : $(full_target) |
| 220 | |
Joe Onorato | aaa5d11 | 2010-09-01 10:39:50 -0700 | [diff] [blame] | 221 | ifeq ($(strip $(LOCAL_UNINSTALLABLE_MODULE)),) |
| 222 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 223 | # Define a rule to create a zip of these docs. |
| 224 | out_zip := $(OUT_DOCS)/$(LOCAL_MODULE)-docs.zip |
| 225 | $(out_zip): PRIVATE_DOCS_DIR := $(out_dir) |
| 226 | $(out_zip): $(full_target) |
| 227 | @echo Package docs: $@ |
| 228 | @rm -f $@ |
| 229 | @mkdir -p $(dir $@) |
| 230 | $(hide) ( F=$$(pwd)/$@ ; cd $(PRIVATE_DOCS_DIR) && zip -rq $$F * ) |
| 231 | |
Joe Onorato | 36b89ff | 2013-12-04 02:31:18 -0800 | [diff] [blame] | 232 | $(LOCAL_MODULE)-docs.zip : $(out_zip) |
| 233 | |
The Android Open Source Project | 88b6079 | 2009-03-03 19:28:42 -0800 | [diff] [blame] | 234 | $(call dist-for-goals,docs,$(out_zip)) |
Joe Onorato | aaa5d11 | 2010-09-01 10:39:50 -0700 | [diff] [blame] | 235 | |
| 236 | endif |