Makefile revision 3027
1#	$Id$
2#
3
4MTREE_DIR=	${.CURDIR}/../etc/mtree
5
6hieriarchy:
7	# If this exits with an error code of 2 your file hieriarchy was
8	# modified for some reason, please read the mtree output to understand
9	# what was changed, then run the command again.
10	#
11	# XXX This will currently error out if you have a procfs mounted,
12	# unmount it to get past this problem until procfs is fixed.
13	#
14	mtree -deu -f ${MTREE_DIR}/BSD.root.dist  -p ${DESTDIR}/
15	mtree -deu -f ${MTREE_DIR}/BSD.var.dist   -p ${DESTDIR}/var
16	mtree -deu -f ${MTREE_DIR}/BSD.usr.dist   -p ${DESTDIR}/usr
17.if defined(MAKE_LOCAL)
18	mtree -deu -f ${MTREE_DIR}/BSD.local.dist -p ${DESTDIR}/usr/local
19.endif
20	cd ${DESTDIR}/ && rm -f ${DESTDIR}/sys && ln -s usr/src/sys sys
21