title: using MAKEFILE to copy files before compilation and delete them after
body: <p>I am trying to copy files befoe compilation (I have two source files with same name so I copy the files to a files with a different name) and delete them at the end of the MAKEFILE.
  I am trying to do the folliwng but probably there is mismatch in the execution order. 
  How can I do it correctly?</p>
  
  <pre><code>all: copy_dup_files $(dst_dir) $(APP_TARGET_LIB) delete_dup_files
  
  copy_dup_files:  
      @echo "COPYING DUP FILES"
      $(shell cp /aaa/hmac.c /aaa/hmac1.c )
      $(shell cp /bbb/hmac.c /bbb/hmac2.c )
  
  delete_dup_files:
      @echo "DELETING DUP FILES"
      $(shell rm /aaa/hmac1.c )
      $(shell rm /bbb/hmac2.c )
  </code></pre>
  
  <p>Thanks</p>