]> code.ossystems Code Review - openembedded-core.git/commitdiff
autotools.bbclass: respect CLEANBROKEN
authorRoss Burton <ross.burton@intel.com>
Thu, 4 Dec 2014 14:17:08 +0000 (14:17 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 5 Dec 2014 17:43:14 +0000 (17:43 +0000)
autotools.bbclass should respect CLEANBROKEN as it invokes 'make clean' on
configure.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/autotools.bbclass

index bed8a835d41340fb82fa46ca956d16d03df19329..ca04e7976e425662fd6759c1f0a3c4cb4a665768 100644 (file)
@@ -110,7 +110,7 @@ autotools_preconfigure() {
                                # At least remove the .la files since automake won't automatically
                                # regenerate them even if CFLAGS/LDFLAGS are different
                                cd ${S}
-                               if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
+                               if [ "${CLEANBROKEN}" != "1" -a \( -e Makefile -o -e makefile -o -e GNUmakefile \) ]; then
                                        ${MAKE} clean
                                fi
                                find ${S} -name \*.la -delete