Hi Raleigh, I could use shell variables, but I can't rely on users specifying them, e.g. NUM_PROCESS=16. So there's no way to grab the command line that was used to invoke Make? Mmm...
Thanks, I will have to think of a workaround, Justin On 4/26/11 10:46 AM, "Rinehart, Raleigh" <[email protected]> wrote: > > >> -----Original Message----- >> Sent: Tuesday, April 26, 2011 11:48 AM >> To: [email protected] >> 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 > _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
