<p>BTW, the unparallelized case can be optimized by only recursing first if Make was passed a <code>-j</code> option:</p>

<div class="highlight highlight-source-diff"><pre><span class="pl-c1">diff --git a/Makefile.am b/Makefile.am</span>
index 8cf1634..9023c10 100644
<span class="pl-md">--- a/Makefile.am</span>
<span class="pl-mi1">+++ b/Makefile.am</span>
<span class="pl-mdr">@@ -176,3 +176,12 @@</span> EXTRA_DIST = \
        wscript \
        README.waf \
        README.windows
<span class="pl-mi1">+</span>
<span class="pl-mi1">+</span>
<span class="pl-mi1">+all-recursive: $(SUBDIRS)</span>
<span class="pl-mi1">+.PHONY: $(SUBDIRS)</span>
<span class="pl-mi1">+</span>
<span class="pl-mi1">+$(SUBDIRS):</span>
<span class="pl-mi1">+       @if (target_option=j; $(am__make_running_with_option)); then \</span>
<span class="pl-mi1">+               $(am__cd) $@ && $(MAKE) $(AM_MAKEFLAGS) all; \</span>
<span class="pl-mi1">+       fi</span></pre></div>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/pull/277#issuecomment-161038082">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ015TV09kGup52CeveAauPu_gh3sks5pLc4MgaJpZM4Fg-b2.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/pull/277#issuecomment-161038082"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>