Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rebuild lib/*.pm if needed.

  • Loading branch information...
commit 2e6de1763072f442c9ff89721714faca221b0079 1 parent 9f7697c
@rocky authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 Build.PL
View
5 Build.PL
@@ -74,11 +74,10 @@ my $class = Module::Build->subclass( class => 'MyModuleBuild',
my $basename = basename($file, '.swg');
my $cfile = $basename."_wrap.c";
my $pmfile = File::Spec->catfile($lib,"$basename.pm");
- ##check up todate pmfile? libfile?
if($self->up_to_date($swigdeps->{$file}, $cfile)) {
- next if $self->up_to_date($file, $cfile);
+ next if $self->up_to_date($file, $cfile) &&
+ $self->up_to_date($cfile, $pmfile);
}
- print "swig: $file -> $cfile\n" if $verb;
$self->do_system('swig', '-o', $cfile, '-perl', '-outdir',
$lib, @swig_flags, $file);
$self->copy_if_modified(from => $pmfile, to_dir => 'blib');
Please sign in to comment.
Something went wrong with that request. Please try again.