title: Makefile: Filter out strings containing a character
body: <p>I'm trying to filter out strings that contain a particular character, but it doesn't work.  I guess <code>make</code> does not support multiple <code>%</code> patterns?</p>
  
  <pre><code>.PHONY: test
  test:
      echo $(filter-out %g%, seven eight nine ten)
  </code></pre>
  
  <p>Gives:</p>
  
  <pre><code>$ make test
  echo seven eight nine ten
  seven eight nine ten
  </code></pre>
  
  <p>It doesn't filter out "eight"?  Actually what I want to do is filter out from a list of filenames those containing "$".  (In a Java context.)</p>
  
  <p>Any hope, or do I have to use <code>$(shell)</code>?</p>
  
  <p>Thanks.</p>