title: makefile run targets in parallel
body: <p>I’ve the following makefile, with two rules.</p>
  
  <blockquote>
    <p>Is there a way to run these two rules in parallel, I mean to maximize
    the core’s capabilities? I see this <a href="https://www.gnu.org/software/make/manual/make.html#Parallel" rel="noreferrer">section</a> but not sure that I got how to use it for my purpose, since I want to handle it within the makefile and not from the command line.</p>
  </blockquote>
  
  <p>I.e. run module1 &amp; 2 targets in parallel. </p>
  
  <p>This is the makefile:</p>
  
  <pre><code>all: module1 module2
  
  .PHONY: module1
  module1:
      @echo "run module 1"
      DIR=$(PWD)
      @echo $(DIR)
  
  .PHONY: module2
  module2:
      @echo "run module2”
  
  cleanup: 
      fzr clean $(DIR)
  </code></pre>