title: makefile target dependencies dependent on target name
body: <p>I have the following rule:</p>
  
  <pre><code>SPECIAL = file1 file2
  
  %.o : %.cpp a.h
      $(CC) -c $(CFLAGS) $&lt; -o $@
  </code></pre>
  
  <p>I would like that if <code>%</code> is in <code>$(SPECIAL)</code>, then <code>b.h</code> is added to the list of dependencies.</p>
  
  <p>Is there a way to do it, without repeating the rule?</p>