-
Notifications
You must be signed in to change notification settings - Fork 19
/
Developers.mk
56 lines (50 loc) · 1.99 KB
/
Developers.mk
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
# rb-sisimai/Developers.mk
# ____ _ _
# | _ \ _____ _____| | ___ _ __ ___ _ __ ___ _ __ ___ | | __
# | | | |/ _ \ \ / / _ \ |/ _ \| '_ \ / _ \ '__/ __| | '_ ` _ \| |/ /
# | |_| | __/\ V / __/ | (_) | |_) | __/ | \__ \_| | | | | | <
# |____/ \___| \_/ \___|_|\___/| .__/ \___|_| |___(_)_| |_| |_|_|\_\
# |_|
# -------------------------------------------------------------------------------------------------
SHELL := /bin/sh
HERE := $(shell pwd)
NAME := Sisimai
RUBY ?= ruby
MKDIR := mkdir -p
LS := ls -1
CP := cp
RM := rm -f
PERL5SISIMAI := p5-sisimai
PRECISIONTAB := ANALYTICAL-PRECISION
PARSERLOGDIR := tmp/parser-logs
MAILCLASSDIR := lib/$(NAME)/Lhost
MTARELATIVES := ARF rfc3464 rfc3834
BENCHMARKDIR := tmp/benchmark
PARSERSCRIPT := $(RUBY) sbin/emparser --delivered
RELEASEVERMP := $(RUBY) -rsisimai
DEVELOPVERMP := $(RUBY) -I./lib -rsisimai
HOWMANYMAILS := $(DEVELOPVERMP) -e 'print Sisimai.make($$*.shift, delivered: true).size' $(COMPARINGDIR)
BENCHMARKEMP := sbin/mp
SET_OF_EMAIL := set-of-emails
PRIVATEMAILS := $(SET_OF_EMAIL)/private
PUBLICEMAILS := $(SET_OF_EMAIL)/maildir/bsd
DOSFORMATSET := $(SET_OF_EMAIL)/maildir/dos
MACFORMATSET := $(SET_OF_EMAIL)/maildir/mac
INDEX_LENGTH := 24
DESCR_LENGTH := 50
BH_CAN_PARSE := AmazonSES AmazonWorkMail Aol Bigfoot Biglobe Courier EZweb Exim Facebook GSuite \
Google KDDI MessageLabs MessagingServer Office365 Postfix SendGrid Sendmail Verizon \
X5 Yandex qmail
# -------------------------------------------------------------------------------------------------
.PHONY: clean
private-sample:
$(RM) -r ./$(PRIVATEMAILS)
$(CP) -vRp ../$(PERL5SISIMAI)/$(PRIVATEMAILS) $(SET_OF_EMAIL)
update-other-format-emails:
for v in `find $(PUBLICEMAILS) -name '*-01.eml' -type f`; do \
f="`basename $$v`" ;\
nkf -Lw $$v > $(DOSFORMATSET)/$$f ;\
nkf -Lm $$v > $(MACFORMATSET)/$$f ;\
done
clean:
$(RM) -r ./$(BENCHMARKDIR)