Date: Fri, 9 Jul 2004 17:59:01 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src Makefile Message-ID: <20040709145901.GB2773@ip.net.ua> In-Reply-To: <23949.1089384305@critter.freebsd.dk> References: <20040709144332.GA2773@ip.net.ua> <23949.1089384305@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040709145901.GB2773>