%prompt> make test make: Fatal error: Don't know how to make target `lib/My/.Module.pm.sw +p'
Ladies and Gentlemen, I have a solution, albeit somewhat ugly, that fixes this. :-)
use strict; use ExtUtils::MakeMaker; { no strict 'refs'; my $libscan = \&{"ExtUtils::MM_Any::libscan"}; *{"ExtUtils::MM_Any::libscan"} = sub { return '' unless $libscan->(@_); return '' if $_[1] =~ /\.swp$/; return $_[1]; }; } WriteMakefile( NAME => 'My::Module', VERSION_FROM => 'lib/My/Module.pm', PREREQ_PM => { 'Test::More' => 0.47, } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Making ExtUtils::MakeMaker ignore .swp files
by PodMaster (Abbot) on Feb 09, 2005 at 12:29 UTC | |
by dragonchild (Archbishop) on Feb 09, 2005 at 13:31 UTC | |
|
Re: Making ExtUtils::MakeMaker ignore .swp files
by Anonymous Monk on Jul 21, 2012 at 00:44 UTC |