diff options
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r-- | meta/classes/autotools.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 97a4ac63fb..0039b648a1 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -214,11 +214,13 @@ autotools_stage_all() { | |||
214 | fi | 214 | fi |
215 | rm -rf ${STAGE_TEMP}/${mandir} || true | 215 | rm -rf ${STAGE_TEMP}/${mandir} || true |
216 | rm -rf ${STAGE_TEMP}/${infodir} || true | 216 | rm -rf ${STAGE_TEMP}/${infodir} || true |
217 | # This will remove an empty directory so we can ignore it | ||
218 | rmdir ${STAGE_TEMP}/${datadir} || true | ||
217 | if [ -d ${STAGE_TEMP}/${datadir} ]; then | 219 | if [ -d ${STAGE_TEMP}/${datadir} ]; then |
218 | install -d ${STAGING_DATADIR}/ | 220 | install -d ${STAGING_DATADIR}/ |
219 | cp -fpPR ${STAGE_TEMP}/${datadir}/* ${STAGING_DATADIR}/ | 221 | cp -fpPR ${STAGE_TEMP}/${datadir}/* ${STAGING_DATADIR}/ |
220 | fi | 222 | fi |
221 | #rm -rf ${STAGE_TEMP} | 223 | rm -rf ${STAGE_TEMP} |
222 | } | 224 | } |
223 | 225 | ||
224 | EXPORT_FUNCTIONS do_configure do_install | 226 | EXPORT_FUNCTIONS do_configure do_install |