help-make
[Top][All Lists]
Advanced

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

RE: Is parallelism (-j#) available?


From: Rinehart, Raleigh
Subject: RE: Is parallelism (-j#) available?
Date: Tue, 26 Apr 2011 12:46:22 -0500


> -----Original Message-----
> Sent: Tuesday, April 26, 2011 11:48 AM
> To: address@hidden
> Subject: Is parallelism (-j#) available?
> 
> Hi all,
> 
> We typically run our builds using 'make -j16' and we have several internal
> programs that need to know what level of parallelism was specified.  We're
> using Makefiles (more specifically, Automake Makefile.am's), but I wouldn't
> expect the -j to be available as a Makefile variable.  So the question is: how
> can I get that -j16 within my Makefile?
> 
> Thanks,
> Justin

Hi Justin,
This question was asked and answered a few months back.
Short answer is: there is no way within GNU make to get that info.

However could you wrap things with shell scripts and use shell variables to 
achieve what you want? 

-raleigh




reply via email to

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