-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
93 lines (76 loc) · 2.64 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# DO NOT EDIT! This file is written by perl_setup_dist.
# If needed, you can add content at the end of the file.
## no critic (Policy)
use 5.026;
use strict;
use warnings;
use ExtUtils::MakeMaker::CPANfile;
WriteMakefile(
NAME => 'App::ArduinoBuilder',
DISTNAME => 'App-ArduinoBuilder',
AUTHOR => q{Mathias Kende <[email protected]>},
VERSION_FROM => 'lib/App/ArduinoBuilder.pm',
ABSTRACT => q{All-in-one build system for Arduino programs},
LICENSE => 'mit',
EXE_FILES => ['script/arduino_builder',],
MIN_PERL_VERSION => '5.026',
MAN3PODS => {},
# Directories in which we look for Makefile.PL. In general could be omitted but is needed in case there
# is a file named Makefile.PL in a sub-directory. Should be customized if such a file needs to be
# processed by ExtUtils.
DIR => [],
NO_MYMETA => 1,
META_MERGE => {
'meta-spec' => { version => 2 },
# Goes with NO_MYMETA (which would provide the dynamic config).
dynamic_config => 0,
no_index => {
directory => [ 'local', 'vendor', 't' ],
namespace => ['App::ArduinoBuilder',],
},
resources => {
repository => {
type => 'git',
url => '[email protected]:mkende/arduino_builder.git',
web => 'https://github.com/mkende/arduino_builder',
},
bugtracker => {
web => 'https://github.com/mkende/arduino_builder/issues',
},
},
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => '.gz', },
clean => { FILES => 'App-ArduinoBuilder-*' },
);
sub MY::postamble {
my ($self) = @_;
my @postamble;
push @postamble, ::postamble() if *::postamble{CODE};
# Solaris has a weird (?) make that does not support our `export` statements.
push @postamble, <<"MAKE_FRAGMENT" unless $^O eq 'solaris';
distupload: distcheck disttest
\t\$(MAKE) tardist
\tcpan-upload --directory Dist-Setup \$(DISTVNAME).tar\$(SUFFIX)
cover:
\tcover -test
critic: export EXTENDED_TESTING = 1
critic: all
\tperl -Ilib t/001-perlcritic.t 2>&1 | less
rawcritic:
\tperlcritic lib script
tidy:
\tperltidy -b -bext='/' \$(shell find lib -name "*.pm") script/arduino_builder
spelling: export EXTENDED_TESTING = 1
spelling:
\t\$(PERLRUN) t/001-spelling.t --interactive
alltest: export EXTENDED_TESTING = 1
alltest: test
clean:: clean_coverdb
clean_coverdb:
\trm -fr cover_db
MAKE_FRAGMENT
return join "\n", @postamble;
}
# You can add below this template a `postamble` sub that returns more content to
# add to the generated Makefile.
# End of the template. You can add custom content below this line.