summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2015-10-15 01:46:55 +0000
committerEd Maste <emaste@FreeBSD.org>2015-10-15 01:46:55 +0000
commit07670b30fa435eef153dd6f4612ac88167db1b21 (patch)
tree2868a40bb4c2f302c978d93952ff8581c6bdb414 /Makefile.inc1
parent962d02b00ba208374547bbef1ae2fc9c3ae2d8aa (diff)
downloadsrc-test2-07670b30fa435eef153dd6f4612ac88167db1b21.tar.gz
src-test2-07670b30fa435eef153dd6f4612ac88167db1b21.zip
Create /usr/tests *.debug file directory hierarchy
Reviewed by: bdrewery, ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D3896
Notes
Notes: svn path=/head/; revision=289351
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc18
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 9332b300e060..5d1917ca2b5b 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -557,6 +557,10 @@ _worldtmp:
mkdir -p ${WORLDTMP}${TESTSBASE}
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.tests.dist \
-p ${WORLDTMP}${TESTSBASE} >/dev/null
+.if ${MK_DEBUG_FILES} != "no"
+ mtree -deU -f ${.CURDIR}/etc/mtree/BSD.tests.dist \
+ -p ${WORLDTMP}/usr/lib/debug/${TESTSBASE} >/dev/null
+.endif
.endif
.for _mtree in ${LOCAL_MTREE}
mtree -deU -f ${.CURDIR}/${_mtree} -p ${WORLDTMP} > /dev/null
@@ -892,6 +896,10 @@ distributeworld installworld: _installcheck_world
-mkdir -p ${DESTDIR}/${DISTDIR}/${dist}${TESTSBASE}
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.tests.dist \
-p ${DESTDIR}/${DISTDIR}/${dist}${TESTSBASE} >/dev/null
+.if ${MK_DEBUG_FILES} != "no"
+ mtree -deU -f ${.CURDIR}/etc/mtree/BSD.tests.dist \
+ -p ${DESTDIR}/${DISTDIR}/${dist}/usr/lib/debug/${TESTSBASE} >/dev/null
+.endif
.endif
.if defined(NO_ROOT)
${IMAKEENV} mtree -C -f ${.CURDIR}/etc/mtree/BSD.root.dist | \