-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile.PL
72 lines (51 loc) · 1.44 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/perl
# Copyright (c) 2015-2025 H.Merijn Brand
require 5.006;
use strict;
our $VERSION = "0.18";
use ExtUtils::MakeMaker;
my %wm = (
NAME => "Release::Checklist",
DISTNAME => "Release-Checklist",
ABSTRACT => "A QA checklist for CPAN releases",
AUTHOR => "H.Merijn Brand <hmbrand\@cpan.org>",
VERSION => $VERSION,
MIN_PERL_VERSION => "5.006",
PREREQ_PM => { "Test::More" => 0.88 },
macro => { TARFLAGS => "--format=ustar -c -v -f" },
);
$ExtUtils::MakeMaker::VERSION > 6.30 and $wm{LICENSE} = "perl";
my $rv = WriteMakefile (%wm);
1;
package MY;
sub postamble {
my $min_vsn = ($] >= 5.010 && -d "xt" && ($ENV{AUTOMATED_TESTING} || 0) != 1)
? join "\n" =>
'test:: doc',
' -@env TEST_FILES="xt/*.t" make -e test_dynamic',
" -$^X scripts/pod-spell-check --aspell --ispell"
: "";
<<"EOPA";
VERSION = $VERSION
.PHONY: test doc
all:: Checklist.pm
doc: Checklist.html Checklist.pod Checklist.pm
Checklist.html: Checklist.md
perl md2html.pl
Checklist.pod: Checklist.md
perl md2pod.pl
Checklist.pm: Checklist.pod
perl pod2pm.pl
spellcheck:
pod-spell-check --aspell --ispell
checkmeta: spellcheck
perl sandbox/genMETA.pl -c
fixmeta: distmeta
perl sandbox/genMETA.pl
tgzdist: checkmeta fixmeta \$(DISTVNAME).tar.gz distcheck
-\@mv -f \$(DISTVNAME).tar.gz \$(DISTVNAME).tgz
-\@cpants_lint.pl \$(DISTVNAME).tgz
-\@rm -f Debian_CPANTS.txt
$min_vsn
EOPA
} # postamble