2 # Copyright (C) 2013-2015 all contributors <meta@public-inbox.org>
3 # License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
5 use ExtUtils::MakeMaker;
6 my @EXE_FILES = split("\n", `git ls-files 'script/*' 2>/dev/null`);
7 my $PM_FILES = `git ls-files lib '*.pm' 2>/dev/null`;
11 NAME => 'PublicInbox',
13 AUTHOR => 'Eric Wong <e@80x24.org>',
14 ABSTRACT => 'public-inbox server infrastructure',
15 EXE_FILES => \@EXE_FILES,
17 # note: we use spamc(1), NOT the Perl modules
18 # We also depend on git.
19 # Keep this sorted and synced to the INSTALL document
22 'Email::MIME::ContentType' => 0,
24 'Encode::MIME::Header' => 0,
25 'Mail::Thread' => '2.5', # 2.5+ needed for Email::Simple compat
28 # We have more test dependencies, but do not force
29 # users to install them
35 # support using eatmydata to speed up tests (apt-get install eatmydata):
36 # https://www.flamingspork.com/projects/libeatmydata/
39 -include Documentation/include.mk
40 N ?= \$(shell echo \$\$(( \$\$(nproc 2>/dev/null || echo 2) + 1)))
41 SCRIPTS := scripts/ssoma-replay
42 my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES) \$(SCRIPTS))
46 @\$(PERL) -I lib -c \$(subst .syntax,,\$@)
48 syntax:: \$(my_syntax)
51 \$(EATMYDATA) prove -lv -j\$(N)