title: MAKEFILE - copying/moving files in present directory to another folder
body: <p>I do this in my application</p>
  
  <pre><code>cat $(shell find $(MY_DIRECTORY) -name "*.filetype" -type f \( -path '.*/*/*' -prune -o -print \)) &gt; $(MY_DIRECTORY)/files-concatenated.css
  </code></pre>
  
  <p>This succesfully concatenates all of the files in the present directory (excluding subdirectories - which is what I need) </p>
  
  <p>but when I do this</p>
  
  <pre><code>    mv $(shell find $(MY_DIRECTORY) -name "*.filetype" -type f \( -path '.*/*/*' -prune -o -print \)) &gt; $(MY_DIRECTORY)/files-collected
  </code></pre>
  
  <p>or this</p>
  
  <pre><code>    cp $(shell find $(MY_DIRECTORY) -name "*.filetype" -type f \( -path '.*/*/*' -prune -o -print \)) &gt; $(MY_DIRECTORY)/files-collected
  </code></pre>
  
  <p>It will look everywhere (including subdirectories), how do I make this exclude the subdirectories too)</p>
  
  <p></p>
  
  <p>*Edit: I use</p>
  
  <pre><code>    mv $(shell find $(MY_DIRECTORY) -name "*.filetype" -type f \( -path '.*/*/*' -prune -o -print \)) $(MY_DIRECTORY)/files-collected
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    cp $(shell find $(MY_DIRECTORY) -name "*.filetype" -type f \( -path '.*/*/*' -prune -o -print \)) $(MY_DIRECTORY)/files-collected
  </code></pre>