title: Makefile that runs different processes in different prompts
body: <p>I'm creating a Makefile that runs a <code>process manager.c</code> and another process <code>supermarket.c</code> after the first one. I was wondering if it was possible to do it in a way that it opens one shell window for each file, since, at the moment, I get the output of both processes in the same prompt and It's pretty confusing to me.</p>
  <p>Here is my Makefile:</p>
  <pre><code>all: manager supermarket
  
  manager: manager.c
      $(CC) $(CFLAGS) $(THREADS) -o manager manager.c
  
      
  supermarket: supermarket.c
      $(CC) $(CFLAGS) $(THREADS) -o supermarket supermarket.c
  
  
  test2:  
      @echo [+] Starting Manager process...
      @./manager &amp; echo $$! &gt; m.PID
      @echo [+] Manager is running...
      @echo [+] Starting Supermarket process...
      @./supermarket 6 50 3 200 100 20 &amp; echo $$! &gt; sm.PID
      @echo [+] Supermarket is running...
      @sleep 25
      
      if [ -e m.PID ]; then \
          echo [+] Sending SIGHUP to Manager process...; \
          kill -1 $$(cat m.PID) || true; \
          echo [+] Manager waiting Supermarket to close...; \
          while sleep 1; do ps -p $$(cat sm.PID) 1&gt;/dev/null || break; done; \
      fi;
      
      @rm m.PID
      @rm sm.PID
      @echo
      @echo
      @./analisi.sh $(LOG_FN)
      @echo
      @echo
  </code></pre>