[jamming] Copying files as part of a build

Kai Backman kaib at google.com
Tue May 30 08:31:43 PDT 2006


 Hi Craig,

 The standard Jambase rule File does exactly this:

File foo.copy : foo.original ;

 It makes foo.copy depend on foo.original and provides the actions to
copy the file if there are any changes. It also makes the pseudotarget
"files"
depend on foo.original (MkDir does the same for "dirs").

You can then either:

Depends all : foo.copy ; # Repeat for each file
or
Depends all : files ; # Just needed once

 Now when you build "all" this will also trigger your file copying.
There is also a convenience target named Bulk:

Bulk targetdir : foo.original bar.original ;

 More info about the standard Jambase here:
http://public.perforce.com/public/jam/src/Jambase.html

 Let me know if you need more of an example to get you going or just
post snippets of your Jamfile.

 Take care,

 Kai


On 5/30/06, Craig Kadziolka <craigk at wp.pl> wrote:
>
> Is it possible to specify a set of files to be copied from a source
> directory to a destination directory as part of a build? I guess make them
> dependent on "all" or something? Would someone be able to give an example
> of
> how I could do this please?
>
> Thanks,
>
> Craig.
>
> _______________________________________________
> jamming mailing list  -  jamming at perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>



-- 
Kai Backman, Software Engineer, kaib at google.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://maillist.perforce.com/pipermail/jamming/attachments/20060530/16dd0b81/attachment.html


More information about the jamming mailing list