aboutsummaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2009-03-15 13:14:06 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2009-03-15 13:14:06 +0000
commit8a6a076cb4e8a6bc794f05e71cae1f43e0d3d371 (patch)
tree4b92401f17507b0d5efb32be01d6f4a590ad0d70 /Makefile.inc1
parentad71fe3c3507be642a5eff21e7ae843414a62232 (diff)
downloadsrc-8a6a076cb4e8a6bc794f05e71cae1f43e0d3d371.tar.gz
src-8a6a076cb4e8a6bc794f05e71cae1f43e0d3d371.zip
- Create the buildworld object directories with mtree instead of various
mkdir calls - Remove the ugly workaroung from libc NLS, which was to create some of these directories
Notes
Notes: svn path=/head/; revision=189850
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc134
1 files changed, 8 insertions, 26 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 5a45ff124a2a..d4bd1d242121 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -344,30 +344,13 @@ _worldtmp:
rm -f ${OBJTREE}${.CURDIR}/usr.bin/truss/ioctl.c
.endif
.for _dir in \
- usr/bin usr/games usr/include/sys usr/lib \
- usr/libexec usr/sbin usr/share/dict \
- usr/share/groff_font/devX100 \
- usr/share/groff_font/devX100-12 \
- usr/share/groff_font/devX75 \
- usr/share/groff_font/devX75-12 \
- usr/share/groff_font/devascii \
- usr/share/groff_font/devcp1047 \
- usr/share/groff_font/devdvi \
- usr/share/groff_font/devhtml \
- usr/share/groff_font/devkoi8-r \
- usr/share/groff_font/devlatin1 \
- usr/share/groff_font/devlbp \
- usr/share/groff_font/devlj4 \
- usr/share/groff_font/devps \
- usr/share/groff_font/devutf8 \
- usr/share/tmac/mdoc usr/share/tmac/mm
- mkdir -p ${WORLDTMP}/legacy/${_dir}
-.endfor
-.for _dir in \
- lib usr/bin usr/include usr/lib/compat/aout usr/libdata/ldscripts \
- usr/libexec usr/sbin usr/share/misc
+ lib usr legacy/usr
mkdir -p ${WORLDTMP}/${_dir}
.endfor
+ mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \
+ -p ${WORLDTMP}/legacy/usr >/dev/null
+ mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \
+ -p ${WORLDTMP}/usr >/dev/null
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
-p ${WORLDTMP}/usr/include >/dev/null
ln -sf ${.CURDIR}/sys ${WORLDTMP}
@@ -448,10 +431,9 @@ build32:
@echo "--------------------------------------------------------------"
@echo ">>> stage 5.1: building 32 bit shim libraries"
@echo "--------------------------------------------------------------"
-.for _dir in \
- usr/include usr/lib32 usr/share/misc
- mkdir -p ${LIB32TMP}/${_dir}
-.endfor
+ mkdir -p ${LIB32TMP}/usr/lib32
+ mtree -deU -f ${.CURDIR}/etc/mtree/BSD.usr.dist \
+ -p ${LIB32TMP}/usr >/dev/null
mtree -deU -f ${.CURDIR}/etc/mtree/BSD.include.dist \
-p ${LIB32TMP}/usr/include >/dev/null
mkdir -p ${WORLDTMP}