title: Run a server and client in a makefile
body: <p>I'm coding a socket file server in C++, and I can't figure out how to put proper unit testing into my makefile. My problem is as follows:</p>
  
  <p>The server, when started, spits out its port number to stdout. It then listens, ad infinitum. The client process (my test suite) needs to read the server's output, and then start up in its own, parallel process.</p>
  
  <p>How can I write a script which will both 1. run the two programs in parallel, 2. allow me to get output from one to the other properly, 3. allow me to store the output in a nice format for later viewing.</p>