Boost logo

Boost-Build :

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.

Cheers,

Ian

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
> lempar.c
> to folder, where executable binary of lemon is placed by Boos Build.
>
> How can I do it in my Jamfile?
>
> --
> С уважением, Алексей Бадяев
> г. Кемерово пр-т Ленина д.90А тел. +7 904 375
> 7805
>
> _______________________________________________
> 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