see if the doc target exists before we try to build it #348626 by Thomas Kahle
authorMike Frysinger <vapier@gentoo.org>
Sun, 20 Nov 2011 08:19:23 +0000 (08:19 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 20 Nov 2011 08:19:23 +0000 (08:19 +0000)
eclass/enlightenment.eclass

index 0f82430e897a33b9c112d14935c953034e7ce093..c0f1c15cd8e6e66b1b402e034baf8936aafbe032 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.89 2011/07/08 11:35:01 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/enlightenment.eclass,v 1.90 2011/11/20 08:19:23 vapier Exp $
 
 # @ECLASS: enlightenment.eclass
 # @MAINTAINER:
@@ -162,7 +162,7 @@ enlightenment_src_compile() {
        if use doc ; then
                if [[ -x ./gendoc ]] ; then
                        ./gendoc || die
-               else
+               elif emake -j1 -n doc >&/dev/null ; then
                        emake doc || die
                fi
        fi