aboutsummaryrefslogtreecommitdiff
path: root/mflib/Makefile.am
blob: fbed4de73e38657c30e1e41d994b92e3f58179d9 (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
# This file is part of Mailfromd.
# Copyright (C) 2007, 2008, 2009, 2010, 2011 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)

MF4_FILES=\
 callout.mf4\
 dns.mf4\
 header_rename.mf4\
 portprobe.mf4\
 rateok.mf4\
 safedb.mf4

MF_FILES =\
 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\
 sockmap.mf\
 spf.mf\
 strip_domain_part.mf\
 valid_domain.mf\
 verp.mf\
 $(MF4_FILES:.mf4=.mf)

EXTRA_DIST=$(inc_DATA) pp-setup $(MF4_FILES)

MAINTAINERCLEANFILES=$(MF4_FILES:.mf4=.mf)

SUFFIXES = .mf4 .mf .lint

M4=m4

.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)/src -I$(top_srcdir)/mflib \
                -I$(top_builddir)/mflib \
                --lint $<

check-am: $(MF_FILES:.mf=.lint)

Return to:

Send suggestions and report system problems to the System administrator.