1# Module makefile for Thread::Semaphore (using ExtUtils::MakeMaker) 2 3require 5.008; 4 5use strict; 6use warnings; 7 8use ExtUtils::MakeMaker; 9 10# Construct make file 11WriteMakefile( 12 'NAME' => 'Thread::Semaphore', 13 'AUTHOR' => 'Jerry D. Hedden <jdhedden AT cpan DOT org>', 14 'VERSION_FROM' => 'lib/Thread/Semaphore.pm', 15 'ABSTRACT_FROM' => 'lib/Thread/Semaphore.pm', 16 'PREREQ_PM' => { 17 'threads::shared' => 0, 18 'Scalar::Util' => 1.10, 19 'Test::More' => 0.50, 20 }, 21 'INSTALLDIRS' => (($] < 5.011) ? 'perl' : 'site'), 22 23 ((ExtUtils::MakeMaker->VERSION() lt '6.25') ? 24 ('PL_FILES' => { }) : ()), 25 ((ExtUtils::MakeMaker->VERSION() gt '6.30') ? 26 ('LICENSE' => 'perl_5') : ()), 27); 28 29# Additional 'make' targets 30sub MY::postamble 31{ 32 return <<'_EXTRAS_'; 33fixfiles: 34 @dos2unix `cat MANIFEST` 35 @$(CHMOD) 644 `cat MANIFEST` 36 @$(CHMOD) 755 examples/*.pl 37_EXTRAS_ 38} 39 40# EOF 41