Makefile revision 296700
150397Sobrien# $FreeBSD: head/targets/pseudo/stage/Makefile 296700 2016-03-11 23:45:28Z bdrewery $
290075Sobrien
3169689Skan# this makefile gets hooked into everyone's dependencies so that
450397Sobrien# distrib-dirs can be done in STAGE_OBJTOP
590075Sobrienall:
650397Sobrien
790075Sobrien# mtree makes a lot of noise if we are not root, 
890075Sobrien# we don't need to see it.
990075Sobrienstage-distrib-dirs: .META ${META_DEPS}
1090075Sobrien	mkdir -p ${STAGE_OBJTOP}
1150397Sobrien	INSTALL="sh ${SRCTOP}/tools/install.sh" ${.MAKE} -C ${SRCTOP}/etc \
1290075Sobrien	    distrib-dirs -DNO_FSCHG -DWITH_TESTS DESTDIR=${STAGE_OBJTOP}
1390075Sobrien
1490075Sobrien.include <bsd.prog.mk>
1590075Sobrien
1650397Sobrien.if ${.MAKE.LEVEL} > 0 && ${MK_STAGING} == "yes"
1750397Sobrienall: stage-distrib-dirs
1890075Sobrien.endif
19169689Skan