Pass .MAKEFLAGS in the 'packages' target to allow parallel

builds.

Pass '-B' when invoking the 'stageworld' target, similar to
what is done for 'installworld'.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Glen Barber 2015-10-15 19:53:16 +00:00
parent 324fd1ce05
commit 86f589087c

View File

@ -1285,8 +1285,8 @@ STAGEDIR= ${MAKEOBJDIRPREFIX}${.CURDIR}/stage
packages:
@mkdir -p ${MAKEOBJDIRPREFIX}${.CURDIR}/stage
${_+_}@cd ${.CURDIR}; \
${MAKE} buildworld ; \
${MAKE} DESTDIR=${DESTDIR:U${STAGEDIR}} -DNO_ROOT stageworld ; \
${MAKE} ${.MAKEFLAGS} buildworld ; \
${MAKE} DESTDIR=${DESTDIR:U${STAGEDIR}} -DNO_ROOT -B stageworld ; \
${MAKE} DESTDIR=${DESTDIR:U${STAGEDIR}} create-world-packages
create-kernel-packages: