title: filter function in Makefile
body: <p>Is there a way to pick up the target name using automatic variable.</p>
  
  <pre><code>SOURCES = $(wildcard *.c)
  dummytgt: $(OBJ)/tier.o
  $(GCC) $(CFLAGS) -c $(filter $@,$(SOURCES)).c -o $@
  </code></pre>
  
  <p>I do not want to mention the filename as input but would want to use the filter function to get the .c file which is same as target name. make throws an error no input files</p>