This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
applied patches, but retained old behavior for win32 (where compilers
[perl5.git] / ext / Errno / Makefile.PL
CommitLineData
eab60bb1
GS
1use ExtUtils::MakeMaker;
2
3@VMS = ($^O eq 'VMS') ? (MAN3PODS => ' ') : ();
4
5WriteMakefile(
6 NAME => 'Errno',
7 VERSION_FROM => 'Errno_pm.PL',
8 PL_FILES => {'Errno_pm.PL'=>'Errno.pm'},
9 PM => {'Errno.pm' => '$(INST_LIBDIR)/Errno.pm'},
10 'clean' => {FILES => 'Errno.pm'},
11 'dist' => {
12 COMPRESS => 'gzip -9f',
13 SUFFIX => '.gz',
14 DIST_DEFAULT => 'd/Errno.pm tardist',
15 },
16 @VMS,
17);
18
19sub MY::postamble {
20 my $TARG = MM->catfile('d','Errno.pm');
21qq!$TARG : Makefile
22 echo '#This is a dummy file so CPAN will find a VERSION' > $TARG
23 echo 'package Errno;' >> $TARG
24 echo '\$\$VERSION = "\$(VERSION)";' >>$TARG
25 echo '#This is to make sure require will return an error' >>$TARG
26 echo '0;' >>$TARG
27
28!
29}