blob: e047826a49189b12fb4b4abdbe01b47c908e7731 (
plain)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# This file is part of Mailfromd.
# Copyright (C) 2007-2011, 2015 Sergey Poznyakoff
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
incdir=$(pkgdatadir)/$(VERSION)/include
inc_DATA =\
$(MF_FILES)\
$(PP_SETUP_FILE)\
status.mfh
if DSPAM_COND
DSPAM_MODULE = dspam.mf
endif
MF4_FILES=\
callout.mf4\
dns.mf4\
header_rename.mf4\
portprobe.mf4\
rateok.mf4\
safedb.mf4
MF_FILES =\
_register.mf\
gettext.mf\
heloarg_test.mf\
is_ip.mf\
localdomain.mf\
match_cidr.mf\
match_dnsbl.mf\
match_rhsbl.mf\
poll.mf\
revip.mf\
sa.mf\
sieve.mf\
syslog.mf\
sockmap.mf\
status.mf\
spf.mf\
strip_domain_part.mf\
valid_domain.mf\
verp.mf\
$(DSPAM_MODULE)\
$(MF4_FILES:.mf4=.mf)
noinst_HEADERS = \
dspam.h\
email.h\
sa.h\
sieve.h\
syslog.h\
_register.h\
status.ex\
status.h
BUILT_SOURCES = $(noinst_HEADERS)
EXTRA_DIST=$(inc_DATA) pp-setup $(MF4_FILES) mfex.awk mfh.awk dspam.mf
MAINTAINERCLEANFILES=$(MF4_FILES:.mf4=.mf)
SUFFIXES = .mf4 .mf .lint .ex
M4=m4
.mf.h:
$(AM_V_GEN)awk -f $(top_srcdir)/mflib/mfh.awk $< > $@
.mf.ex:
$(AM_V_GEN)awk -f $(top_srcdir)/mflib/mfex.awk $< > $@
.mf4.mf:
$(AM_V_GEN)$(M4) -s -DMF_AUTOHEADER $(top_srcdir)/mflib/pp-setup $< | sed 1d > $@
MF_LINT = $(MF_LINT_$(V))
MF_LINT_ = $(MF_LINT_$(AM_DEFAULT_VERBOSITY))
MF_LINT_0 = @echo LINT $<;
.mf.lint:
$(MF_LINT)$(top_builddir)/src/mailfromd \
--no-site-config --no-user-config \
-I$(top_srcdir)/mflib \
-I$(top_builddir)/mflib \
--lint $<
lint: $(MF_FILES:.mf=.lint)
|