summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/classes/gtk-doc.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass
index eaa1385d9d..f7ba78847a 100644
--- a/meta/classes/gtk-doc.bbclass
+++ b/meta/classes/gtk-doc.bbclass
@@ -6,6 +6,9 @@
# re-generation of documentation. For now, we'll make do with this which
# packages up any existing documentation (so from tarball builds).
+# The documentation directory, where the infrastructure will be copied.
+GTKDOC_DOCDIR ?= "${S}"
+
DEPENDS_append = " gtk-doc-stub-native"
EXTRA_OECONF_append = "\
@@ -15,5 +18,5 @@ EXTRA_OECONF_append = "\
"
do_configure_prepend () {
- ( cd ${S} && gtkdocize )
+ gtkdocize --docdir ${GTKDOC_DOCDIR}
}