help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Transfering parallelism to sub-makes explicitly


From: John Graham-Cumming
Subject: Re: Transfering parallelism to sub-makes explicitly
Date: Thu, 31 Jan 2008 20:29:43 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040208 Thunderbird/0.5 Mnenhy/0.6.0.104

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Wuertele wrote:
| This works great for me, except for one situation:  I can't figure out
how to
| explicitly pass down my "-j N" values to submakes.  There doesn't seem
to be a
| single make variable which contains the value of "N".  I would like to do
| something like this:
|
|   unexport $(.VARIABLES)
|
|   SOMEVARIABLE := # ????
|
|   target:
|           $(MAKE) -j $(SOMEVARIABLE) target
|
| How do I set SOMEVARIABLE so that my sub-make gets the same "-j N"
that the
| top-level got?

Why do you want to do this?   If you specify -j N on the top-level make
then all sub-makes will run in parallel because of the jobserver feature
and hence you don't need to pass -j N down.

John.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHoiGnLphrp73n/hARAh++AKCBPN4NOmtXzl8425vshdeGExEn3ACeOZQU
/dDvMcCYmhiI5wJofM+UEkk=
=5q5R
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]