cons-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: copy vs link in Install


From: CARRY,GILLES (Non-HP-France,ex1)
Subject: RE: copy vs link in Install
Date: Tue, 16 Oct 2001 11:58:54 +0200

> 
> On Tue, 16 Oct 2001, CARRY,GILLES (Non-HP-France,ex1) wrote:
> 
> > 'Install' chooses to link or copy files depending on the situation.
> > Is there any way to force Cons to copy files instead of 
> linking them?
> 
> 
> Instead of Install, define something like (untested):
> 
> sub Copy {
>     my($env) = shift;
>     my($target) = shift;
>     for $file (@_) {
>       $env->Command($target, $file, "cp $file $target");
>     }
> }
> 
> And then use it as so:
> 
>     Copy $cons "include", qw( foo.h bar.h baz.h );
> 

Yes I already thought of that (and made it) but this is OS-dependent.

Regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]