If MAKETARS_SERIAL is set to "YES" or "yes", then the tar sets will be

made in series, even if make's "-j" flag requests multiple parallel
jobs.  This is useful on systems that exhibit poor performance when
running multiple parallel disk-intensive operations.  The default is
MAKETARS_SERIAL=NO, which will obey the "-j" flag passed to the make
command.

Requested in tech-toolchain.  Reverts the change made in revision 1.56.
This commit is contained in:
apb 2008-05-02 19:25:42 +00:00
parent c8f61d2b50
commit 3ba96f4940
1 changed files with 17 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.57 2008/03/16 07:02:22 lukem Exp $
# $NetBSD: Makefile,v 1.58 2008/05/02 19:25:42 apb Exp $
# The `all' target must appear before bsd.own.mk is pulled in.
all:
@ -110,12 +110,24 @@ checkflist-x11: .PHONY check_DESTDIR
${SETSCMD} ./checkflist -x ${CHECKFLIST_FLAGS}
# Note that the .WAIT inside the ${MAKETARSETS:@...} loop is not
# logically necessary, but many systems exhibit poor performance when
# running multiple parallel disk-intensive processes.
# If MAKETARS_SERIAL is set to "YES" or "yes", then the tar sets will be
# made in series, even if make's "-j" flag requests multiple parallel
# jobs. This is useful on systems that exhibit poor performance when
# running multiple parallel disk-intensive operations. The default is
# MAKETARS_SERIAL=NO, which will obey the "-j" flag passed to the make
# command.
#
MAKETARS_SERIAL?= NO
.if empty(MAKETARS_SERIAL:M[Yy][Ee][Ss])
_MAKETARS_WAIT= # empty
.else
_MAKETARS_WAIT= .WAIT
.endif
maketars: .PRECIOUS .PHONY check_DESTDIR check_RELEASEDIR \
sanitise_METALOG checkflist_if_DESTDIR .WAIT \
maketarsetup .WAIT ${MAKETARSETS:@.TARS.@.WAIT do-${.TARS.}@}
maketarsetup .WAIT \
${MAKETARSETS:@.TARS.@${_MAKETARS_WAIT} do-${.TARS.}@}
@true
maketarsetup: .EXEC