[Top][All Lists]

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

Transfering parallelism to sub-makes explicitly

From: David Wuertele
Subject: Transfering parallelism to sub-makes explicitly
Date: Thu, 31 Jan 2008 19:20:31 +0000 (UTC)
User-agent: Loom/3.14 (

I want total control over all build command environments, including for
sub-makes, so I followed Paul Smith's advice (see with this
line at the head of my makefile:

  unexport $(.VARIABLES)

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 := # ????

          $(MAKE) -j $(SOMEVARIABLE) target

How do I set SOMEVARIABLE so that my sub-make gets the same "-j N" that the
top-level got?

(I'm aware that recursive blah blah harmful blah blah, but this is third-party
software I'm driving).


reply via email to

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