From owner-cvs-src@FreeBSD.ORG Fri Jul 9 14:59:22 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8921316A4CE; Fri, 9 Jul 2004 14:59:22 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D493243D39; Fri, 9 Jul 2004 14:59:21 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i69Ex14e036199 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Jul 2004 17:59:03 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i69Ex2bQ003138; Fri, 9 Jul 2004 17:59:02 +0300 (EEST) (envelope-from ru) Date: Fri, 9 Jul 2004 17:59:01 +0300 From: Ruslan Ermilov To: Poul-Henning Kamp Message-ID: <20040709145901.GB2773@ip.net.ua> References: <20040709144332.GA2773@ip.net.ua> <23949.1089384305@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i9LlY+UWpKt15+FH" Content-Disposition: inline In-Reply-To: <23949.1089384305@critter.freebsd.dk> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jul 2004 14:59:22 -0000 --i9LlY+UWpKt15+FH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 09, 2004 at 04:45:05PM +0200, Poul-Henning Kamp wrote: > In message <20040709144332.GA2773@ip.net.ua>, Ruslan Ermilov writes: > > > >--sdtB3X0nJg68CQEu > >Content-Type: text/plain; charset=3Dus-ascii > >Content-Disposition: inline > >Content-Transfer-Encoding: quoted-printable > > > >On Fri, Jul 09, 2004 at 01:55:50PM +0000, Poul-Henning Kamp wrote: > >> phk 2004-07-09 13:55:50 UTC > >>=3D20 > >> FreeBSD src repository > >>=3D20 > >> Modified files: > >> . Makefile=3D20 > >> Log: > >> Add a JFLAG which can be used to speed up universe: > >> make universe JFLAG=3D3D-j12 > >> =3D20 > >> Revision Changes Path > >> 1.300 +3 -3 src/Makefile > >>=3D20 > >What was wrong with ``make -j12 universe''? >=20 > It doesn't work. You want the individual buildworlds > to get a -j12, not the outside for-loop. >=20 I'm sure it works. Outside for-loop cannot be affected by -j12 because .for is unparallelizeable -- it just expands the lines using the loop variable. And -j12 is passed happily to the individual buildworlds in .MAKEFLAGS. Consider this makefile: : 1 2 3 4 5: : @sleep `jot -r 1 0 1.0` : @echo ${.TARGET} ${.MAKEFLAGS} :=20 : all: 1 2 3 4 5 :=20 : all2: : .for target in 1 2 3 4 5 : cd ${.CURDIR} && ${MAKE} ${target} : .endfor $ make -j4 all 2 -j 4 4 -j 4 5 -j 4 3 -j 4 1 -j 4 $ make -j4 all2 cd /usr/home/ru && make 1 1 -j 4 cd /usr/home/ru && make 2 2 -j 4 cd /usr/home/ru && make 3 3 -j 4 cd /usr/home/ru && make 4 4 -j 4 cd /usr/home/ru && make 5 5 -j 4 Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --i9LlY+UWpKt15+FH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFA7rK1qRfpzJluFF4RAubdAJ9qYhrn31BikekWGjoCu0dun+NRXQCeNHNW qInSc92mpDaJO/Ye/9eFTMk= =TgMb -----END PGP SIGNATURE----- --i9LlY+UWpKt15+FH--