title: Makefile change filename into hidden files
body: <p>All right I have 2 varables in my makefile. I want to iterate over the files in a variable and apply a transformation like the below.</p>
  
  <pre><code>cmain.cpp         -&gt;   .cmain.depend
  src/source.cpp    -&gt;   src/.source.depend
  </code></pre>
  
  <p>How would I go about prepending a <code>.</code> to the beginning of the file name and changing the extension to depend with make? The array I want to transform is described by the below.</p>
  
  <pre><code>ALLSRC=$(shell find . -name '*.cpp')
  </code></pre>