title: GNU make: Extracting argument to -j within Makefile
body: <p>I've been searching for an hour, and this information appears to be nowhere... </p>
  
  <p>I'd like to be able to extract (and possibly use) the number of requested make "jobs," as passed via the -j option, or by Make itself in the case of sub-makes, in the Makefile.</p>
  
  <p>The most promising thing I've seen so far is the $(MAKEFLAGS) variable, but on my system (if I do, say, make -j2) the contents of this variable are only "--jobserver-fds=3,4 -j".  Is there any way to get the actual number of jobs passed with -j?</p>