]> code.ossystems Code Review - openembedded-core.git/commitdiff
gtk-doc: use --srcdir instead of cd
authorRoss Burton <ross.burton@intel.com>
Wed, 14 Mar 2018 12:55:29 +0000 (12:55 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Mar 2018 10:38:48 +0000 (03:38 -0700)
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/gtk-doc.bbclass

index 3f731cb93bf37bf47569ca54fe10884caec3934f..b4f6754906aa9ba04482b5f80ad60afd10e494de 100644 (file)
@@ -32,7 +32,9 @@ inherit python3native pkgconfig qemu
 DEPENDS_append = "${@' qemu-native' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}"
 
 do_configure_prepend () {
-       ( cd ${S}; gtkdocize --docdir ${GTKDOC_DOCDIR} || true )
+       # Need to use ||true as this is only needed if configure.ac both exists
+       # and uses GTK_DOC_CHECK.
+       gtkdocize --srcdir ${S} --docdir ${GTKDOC_DOCDIR} || true
 }
 
 do_compile_prepend_class-target () {