summaryrefslogtreecommitdiff
path: root/classes/autotools.oeclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/autotools.oeclass')
-rw-r--r--classes/autotools.oeclass10
1 files changed, 10 insertions, 0 deletions
diff --git a/classes/autotools.oeclass b/classes/autotools.oeclass
index 8f7127a536..268f1bc978 100644
--- a/classes/autotools.oeclass
+++ b/classes/autotools.oeclass
@@ -111,4 +111,14 @@ autotools_do_install() {
oe_runmake 'DESTDIR=${D}' install
}
+STAGE_TEMP="${WORKDIR}/temp-staging"
+
+autotools_stage_includes() {
+ rm -rf ${STAGE_TEMP}
+ mkdir -p ${STAGE_TEMP}
+ make DESTDIR="${STAGE_TEMP}" install
+ cp -a ${STAGE_TEMP}/${includedir}/* ${STAGING_INCDIR}
+ rm -rf ${STAGE_TEMP}
+}
+
EXPORT_FUNCTIONS do_configure do_install