Subject: Re: [Boost-build] Need copy file to place of exe target executable
From: Ian Emmons (iemmons_at_[hidden])
Date: 2009-04-27 09:02:29
I don't know if this is the best way to do it, but it works for me:
import common ;
exe lemon : src/lemon.c : <dependency>lempar.c ;
explicit lempar.c ;
make lempar.c : lempar.c : @common.copy ;
If any of the experts in this forum have a better way, I'd be
interested to hear it.
On Apr 27, 2009, at 12:13 AM, ÐÐ»ÐµÐºÑÐµÐ¹ ÐÐ°Ð´ÑÐµÐ² wrote:
> Hi All!
> How I can copy some file with binary (result of exe target)?
> For example, I have second Jamfile:
> exe lemon : src/lemon.c ;
> ...and I have file src/lempar.c in the same folder src.
> Program lemon read the file lempar.c from the current folder (PWD).
> For load file lempar.c from program lemon, I need copy the file
> to folder, where executable binary of lemon is placed by Boos Build.
> How can I do it in my Jamfile?
> Ð¡ ÑÐ²Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼, ÐÐ»ÐµÐºÑÐµÐ¹ ÐÐ°Ð´ÑÐµÐ²
> Ð³. ÐÐµÐ¼ÐµÑÐ¾Ð²Ð¾ Ð¿Ñ-Ñ ÐÐµÐ½Ð¸Ð½Ð° Ð´.90Ð ÑÐµÐ». +7 904 375
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk