title: Proper use of Wildcard in Makefile
body: <p>I have to use a makefile in order to copy all the contents of say Folder 1 into Folder 2. The contents of folder 1 are 5 files having names as abc_1.c,abc_2.c,.. and so on.
  The paths of folders 1 &amp; 2 are both given as variables in makefile and then the command for copy is being given. 
  The problem is that even after using Wildcard function I am able to copy the entire folder 1 into folder 2, and not the contents of folder1. 
  Kindly help me out by suggesting a method to copy the contents of folder 1 into 2 and not the entire folder.</p>
  
  <p>Following is the code snippet which I used initially :<br>
  <code>PATH_1 = /ace/1/*</code><br>
  <code>PATH_2 = /ace/2/</code><br>
  The code to copy : <code>shell cp -rf ("$(PATH_1)") ("$(PATH_2)")</code><br>
  Pls dont mind the above line of code.</p>
  
  <p>The main problem was in PATH_1 as the '*' was not resolved properly and the contents were not copied. On removing the '*' from PATH_1 the code worked but again it copied entire folder 1 into folder 2.</p>
  
  <p>Later, I modified Path_1 as follows :<br>
  <code>PATH_1 = /ace/1/(wildcard abc_*.c)</code></p>
  
  <p>Still the same thing, the entire folder 1 is being copied into folder 2.
  Kindly help me out with this.</p>