Use pkgs/pseudo/stage to run mtree against STAGE_OBJTOP
This commit is contained in:
parent
57bf5f75ba
commit
daba14838c
17
pkgs/pseudo/stage/Makefile
Normal file
17
pkgs/pseudo/stage/Makefile
Normal 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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user