aboutsummaryrefslogtreecommitdiffstats
path: root/monkeyrunner
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@android.com>2010-08-25 15:48:04 -0700
committerAndroid Code Review <code-review@android.com>2010-08-25 15:48:05 -0700
commit1c85488dc3f6dd1e9dd081023ee28c281f24be5d (patch)
tree0ae59d22fa7b1dd1952df6688cce4cb63440da32 /monkeyrunner
parent4632a705097fcc53f2221874a663c3f716953952 (diff)
parent16c864153ef53abc3c64f50877225944c25afacd (diff)
downloadsdk-1c85488dc3f6dd1e9dd081023ee28c281f24be5d.zip
sdk-1c85488dc3f6dd1e9dd081023ee28c281f24be5d.tar.gz
sdk-1c85488dc3f6dd1e9dd081023ee28c281f24be5d.tar.bz2
Merge "Create MonkeyRunner docs target to generate SDK docs."
Diffstat (limited to 'monkeyrunner')
-rw-r--r--monkeyrunner/src/Android.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/monkeyrunner/src/Android.mk b/monkeyrunner/src/Android.mk
index f06f4ce..11c7cc0 100644
--- a/monkeyrunner/src/Android.mk
+++ b/monkeyrunner/src/Android.mk
@@ -29,3 +29,18 @@ LOCAL_JAVA_RESOURCE_DIRS := resources
LOCAL_MODULE := monkeyrunner
include $(BUILD_HOST_JAVA_LIBRARY)
+
+include $(CLEAR_VARS)
+
+MR_GEN_DOC_DIR := $(OUT_DOCS)/gen/guide/developing/tools
+MONKEYRUNNER_GENERATED_DOC := $(MR_GEN_DOC_DIR)/monkeyrunner-api.jd
+
+HELP_PY_PATH := $(TOP)/sdk/monkeyrunner/scripts/help.py
+
+# Setup documentation generation so we can include the MonkeyRunner
+# docs in the SDK.
+$(MONKEYRUNNER_GENERATED_DOC): monkeyrunner
+ mkdir -p $(MR_GEN_DOC_DIR)
+ $(HOST_OUT)/bin/monkeyrunner $(HELP_PY_PATH) sdk-docs $<
+
+ALL_GENERATED_DOCS += $(MONKEYRUNNER_GENERATED_DOC)