]> git.imager.perl.org - imager.git/commitdiff
Made Makefile.PL run $Config{make} lib/Imager/Regops.pm so it exists
authorArnar Mar Hrafnkelsson <addi@cpan.org>
Mon, 14 May 2001 10:24:40 +0000 (10:24 +0000)
committerArnar Mar Hrafnkelsson <addi@cpan.org>
Mon, 14 May 2001 10:24:40 +0000 (10:24 +0000)
for make test and make install.

Makefile.PL

index b0c06b62aed49b0ee83ce0d061d565ba832def3b..6793747fe6e07e61212a3edb1e578b467c5dd8a1 100644 (file)
@@ -80,6 +80,9 @@ if ($] ge '5.005') {
 if ($VERBOSE) { print Dumper(\%opts); }
 mkdir('testout',0777); # since we cannot include it in the archive.
 WriteMakefile(%opts);
+print "Generating Regops.pm\n";
+system($Config{"make"}." lib/Imager/Regops.pm") and die "Failed to generate lib/Imager/Regops.pm";
+
 exit;
 
 
@@ -157,7 +160,7 @@ sub gifcheck {
   }
 
   # we need the version in a #ifdefable form
-  
+
   $F_DEFINE .= "-DIM_GIFMAJOR=$major -DIM_GIFMINOR=$minor";
 }