summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meta/classes/autotools.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 97a4ac63f..0039b648a 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -214,11 +214,13 @@ autotools_stage_all() {
fi
rm -rf ${STAGE_TEMP}/${mandir} || true
rm -rf ${STAGE_TEMP}/${infodir} || true
+ # This will remove an empty directory so we can ignore it
+ rmdir ${STAGE_TEMP}/${datadir} || true
if [ -d ${STAGE_TEMP}/${datadir} ]; then
install -d ${STAGING_DATADIR}/
cp -fpPR ${STAGE_TEMP}/${datadir}/* ${STAGING_DATADIR}/
fi
- #rm -rf ${STAGE_TEMP}
+ rm -rf ${STAGE_TEMP}
}
EXPORT_FUNCTIONS do_configure do_install