title: Makefile pattern rule referencing stem in dependencies
body: <p>I want a pattern rule with dependencies constructed both from the stem and using wildcards, i.e. something like</p>
  
  <pre><code>$(FILES): %.o: %.c $(wildcard %*.c)
  </code></pre>
  
  <p>This doesn't seem to work: the stem % is not expanded within the wildcard function (see <a href="http://www.gnu.org/software/make/manual/html_node/Pattern-Rules.html" rel="noreferrer">http://www.gnu.org/software/make/manual/html_node/Pattern-Rules.html</a>), while the automatic variable $* seems not to be recognized when listing dependencies.</p>
  
  <p>Is there a (not too kludgy) way of doing something like this?</p>