title: Control the output of subcalls to `make`
body: <p>I have a Makefile where one of the goals looks as follows:</p>
  
  <pre><code>task: $(foreach t,$(SUBDIRS),subtask_$t)
  
  subtask_%:
          make -C $* subtask
  </code></pre>
  
  <p>In words, <code>task</code> runs the <code>subtask</code> goals defined in each Makefile found in the directories in the list <code>$(SUBDIRS)</code>. By default, the output to the console is the combination of all outputs from the subtasks. Is there a way to simply output, e.g. <code>$* SUCCESS</code> or <code>$* FAILED</code> depending on the exit code?</p>
  
  <p>I have tried using <code>@make...</code>, but this doesn't mask the output of the commands run from the other Makefiles.</p>
  
  <p>Ideally, I would like to keep the sub-Makefiles unchanges, as I still occasionally want to use them directly and get the full output.</p>