Solved [Solved] How To Properly Prefix Destination For Staging

I am working on a Makefile that needs to do some post-install file manipulation. Something like:

Code:
post-install:
  ${CP} ${WRKDIR}/myexec ${PREFIX}/sbin/

When I try to run # make stage, I get

Code:
cp: /usr/local/sbin/myexec: Text file busy

It seems that the staging process is trying to copy the file over the actual file in the real tree. What prefix should I use with the ${CP} command so that copying the file will target the staging directory?
 
Back
Top