2 # Copyright (C) 2013-2018 all contributors <meta@public-inbox.org>
3 # License: AGPL-3.0+ <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',
12 VERSION => '1.1.0-pre1',
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,
27 # We have more test dependencies, but do not force
28 # users to install them
34 # support using eatmydata to speed up tests (apt-get install eatmydata):
35 # https://www.flamingspork.com/projects/libeatmydata/
38 -include Documentation/include.mk
39 N ?= \$(shell echo \$\$(( \$\$(nproc 2>/dev/null || echo 2) + 1)))
40 SCRIPTS := scripts/ssoma-replay
41 my_syntax := \$(addsuffix .syntax, $PM_FILES \$(EXE_FILES) \$(SCRIPTS))
45 @\$(PERL) -I lib -c \$(subst .syntax,,\$@)
47 syntax:: \$(my_syntax)
49 check-manifest :: MANIFEST
50 if git ls-files >\$<.gen 2>&1; then diff -u \$< \$<.gen; fi
52 check:: pure_all check-manifest
53 \$(EATMYDATA) prove -lv -j\$(N)