2 # Copyright (C) 2013, Eric Wong <normalperson@yhbt.net> and all contributors
3 # License: AGPLv3 or later (https://www.gnu.org/licenses/agpl-3.0.txt)
5 # Note: this may be rewritten in another language in the future,
6 # so don't depend on any public Perl API
8 use ExtUtils
::MakeMaker
;
12 AUTHOR
=> 'Eric Wong <normalperson@yhbt.net>',
13 ABSTRACT
=> 'some sort of mail archiver',
14 EXE_FILES
=> [qw
/ssoma-mda ssoma ssoma-rm/],
16 # Keep this sorted and synced to the INSTALL document
18 'Email::LocalDelivery' => 0,
20 'File::Path::Expand' => 0,
21 'Net::IMAP::Simple' => 0,
27 RSYNC_DEST = ssoma.public-inbox.org:/srv/ssoma/
28 docs = INSTALL README COPYING $(shell git ls-files Documentation/ '*.txt')
29 gz_docs = $(addsuffix .gz, $(docs))
31 gzip -9 --rsyncable < $< > $@+
37 git set-file-times $(docs)
39 rsync --chmod=Fugo=r -av $(gz_docs) $(docs) $(RSYNC_DEST)
41 N = $(shell echo $$(( $$(nproc 2>/dev/null || echo 2) + 1)))