title: Makefile Static Pattern Rule
body: <p>A part of my Makefile:</p>
  
  <pre><code>CFLAGS = -I ../headers -Wall
  EXECUTABLES = testPattern testPatterns
  
  $(EXECUTABLES): %Pattern: %.c pattern.o
        g++ $(CFLAGS) $@.c pattern.o -o $@
  </code></pre>
  
  <p>I didn't include the object compilation because it's irrelevant.</p>
  
  <p>The problem I have with this code is that the pattern matches only the first executable because it ends with 'Pattern', the second executable has an additional 's' at the end which kills the script. Is there any way I can make it work without changing the name of the second executable? </p>
  
  <p>Thanks </p>