title: Makefile negative wildcard
body: <p>I use to make use of wildcards in a Makefile in order to select all the files that end with an <em>.c</em> suffix in its name. That looks like that <code>SRCS := $(wildcard *.c)</code>. In other parts of the Makefile <code>SRCS</code> is used. </p>
  
  <p>What I need to do now is to prevent a given file to be included in the SRCS variable. The way I found to do is combine the shell directive with some console commands: <code>SRC :=$(shell find . -name "*.c" | grep -v "file_to_exclude.c" | xargs)</code></p>
  
  <p>That works fine, but I would like to know whether there is some other  more elegant way than that one using only wildcards.</p>