xref: /freebsd-13-stable/targets/pseudo/stage/Makefile (revision 023fc80ee38a117fa65b2ccb2abf8bdc7dbd6fd9)
1
2# this makefile gets hooked into everyone's dependencies so that
3# distrib-dirs can be done in STAGE_OBJTOP
4all:
5
6# mtree makes a lot of noise if we are not root,
7# we don't need to see it.
8stage-distrib-dirs: .META ${META_DEPS}
9	mkdir -p ${STAGE_OBJTOP}
10	INSTALL="sh ${SRCTOP}/tools/install.sh" ${.MAKE} -C ${SRCTOP}/etc \
11	    distrib-dirs -DNO_FSCHG -DWITH_TESTS DESTDIR=${STAGE_OBJTOP}
12
13.include <bsd.prog.mk>
14
15.if ${.MAKE.LEVEL} > 0 && ${MK_STAGING} == "yes"
16all: stage-distrib-dirs
17.endif
18