Patchwork [4/5] gtk-doc: parameterise the documentation directory

login
register
mail settings
Submitter Ross Burton
Date Jan. 21, 2013, 12:15 p.m.
Message ID <5906d647655a847ec142325e3ac758275a0790a3.1358770449.git.ross.burton@intel.com>
Download mbox | patch
Permalink /patch/43063/
State Accepted
Commit 779d915c7de0fa53684ec0353f569f24ab67e749
Headers show

Comments

Ross Burton - Jan. 21, 2013, 12:15 p.m.
Not every package puts the gtk-doc infrastructure into ${S}, so allow this to be
overridden.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/classes/gtk-doc.bbclass |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass
index eaa1385..f7ba788 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}
 }