[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: copy vs link in Install
From: |
Brad Garcia |
Subject: |
Re: copy vs link in Install |
Date: |
Tue, 16 Oct 2001 06:05:22 -0400 (EDT) |
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 );
Brad Garcia