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 ssoma(1) and spamc(1), NOT the Perl modules
18 # We also depend on git through ssoma.
19 # Keep this sorted and synced to the INSTALL document
21 'Email::Address' => 0,
24 'Email::MIME::ContentType' => 0,
26 'Encode::MIME::Header' => 0,
27 'File::Path::Expand' => 0,
29 'Mail::Thread' => '2.5', # 2.5+ needed for Email::Simple compat
32 # We have more test dependencies, but do not force
33 # users to install them
39 -include Documentation/include.mk
40 my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES))
42 N := \$(shell echo \$\$(( \$\$(nproc 2>/dev/null || echo 2) + 1)))
45 @\$(PERL) -I lib -c \$(subst .syntax,,\$@)
47 syntax:: \$(my_syntax)