Use pkgs/pseudo/stage to run mtree against STAGE_OBJTOP

This commit is contained in:
Simon J. Gerraty 2013-03-06 18:35:57 +00:00
parent 57bf5f75ba
commit daba14838c
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,17 @@
# $FreeBSD$
# this makefile gets hooked into everyone's dependencies so that
# distrib-dirs can be done in STAGE_OBJTOP
all:
# mtree makes a lot of noise if we are not root,
# we don't need to see it.
stage-distrib-dirs: .META
mkdir -p ${STAGE_OBJTOP}
${.MAKE} -C ${SRCTOP}/etc distrib-dirs DESTDIR=${STAGE_OBJTOP} > $@
.include <bsd.prog.mk>
.if ${.MAKE.LEVEL} > 0 && ${MK_STAGING} == "yes"
all: stage-distrib-dirs
.endif

View File

@ -13,3 +13,8 @@ DIRDEPS_FILTER+= \
.if ${MK_SSP:Uno} != "no" && defined(PROG)
DIRDEPS += gnu/lib/libssp/libssp_nonshared
.endif
# we need pkgs/pseudo/stage to prep the stage tree
.if ${DEP_RELDIR:U${RELDIR}} != "pkgs/pseudo/stage"
DIRDEPS += pkgs/pseudo/stage
.endif