diff --git a/Makefile.inc1 b/Makefile.inc1 index 1cdefc948cd9..32be188ccb26 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -558,6 +558,7 @@ _worldtmp: mtree -deU -f ${.CURDIR}/etc/mtree/BSD.tests.dist \ -p ${WORLDTMP}${TESTSBASE} >/dev/null .if ${MK_DEBUG_FILES} != "no" + mkdir -p ${WORLDTMP}/usr/lib/debug/${TESTSBASE} mtree -deU -f ${.CURDIR}/etc/mtree/BSD.tests.dist \ -p ${WORLDTMP}/usr/lib/debug/${TESTSBASE} >/dev/null .endif