<html>#2242: use @MAKEJOBS@ variable in simfactory machine ini files
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Roland Haas</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'>  Version:</td><td></td></tr>
<tr><td style='text-align:right'>     Type:</td><td>enhancement</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>minor</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>

<p>Simfactory has for some time supported a <code>-j</code> option that would let one change (or speficy eg on a freshly configured laptop) how many parallel processes to use when building. This functionality was reviewed and accepted in #1928 however to date no machine.ini file actually implements it so that user choices for <code>-j</code> are ignored.</p>
<p>Unless objected until 2019-04-14 I will go ahead and replace constructs like this:</p>
<div class="codehilite"><pre><span></span>make = make -j 17
</pre></div>


<p>by</p>
<div class="codehilite"><pre><span></span>makejobs = 17
make -j @MAKEJOBS@
</pre></div>


<p>which keeps the current default intact but lets the user change this via <code>simfactory/bin/sim build -j 42</code> at build time (or in their <code>defs.local.ini</code> if they so choose).</p>
<p>To recap the discussion in #1928: if neither the machine database nor the user specifies a value for <code>@MAKEJOBS@</code> then it defaults to 1 which is how <code>make</code> alone would behave.</p>
<p>As a side effect (and partial driver for this) this would mean that one can change the tutorial instructions from the odd</p>
<div class="codehilite"><pre><span></span>simfactory/bin/sim build --mdbentry make &#39;make -j2&#39;
</pre></div>


<p>to</p>
<div class="codehilite"><pre><span></span>simfactory/bin/sim build --jobs 2
</pre></div>


<p>which seems easier on the eyes.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2242/use-makejobs-variable-in-simfactory'>https://bitbucket.org/einsteintoolkit/tickets/issues/2242/use-makejobs-variable-in-simfactory</a></p>
</html>