1# This file is part of Mailfromd. 2# Copyright (C) 2007-2021 Sergey Poznyakoff 3# 4# This program is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 3, or (at your option) 7# any later version. 8# 9# This program is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with this program. If not, see <http://www.gnu.org/licenses/>. 16 17incdir=$(pkgdatadir)/$(VERSION)/include 18inc_DATA =\ 19 $(MF_FILES)\ 20 $(PP_SETUP_FILE)\ 21 status.mfh 22 23MF4_FILES=\ 24 callout.mf4\ 25 dns.mf4\ 26 header_rename.mf4\ 27 portprobe.mf4\ 28 rateok.mf4\ 29 safedb.mf4 30 31MF_FILES =\ 32 _register.mf\ 33 gettext.mf\ 34 heloarg_test.mf\ 35 is_ip.mf\ 36 localdomain.mf\ 37 match_cidr.mf\ 38 match_dnsbl.mf\ 39 match_rhsbl.mf\ 40 poll.mf\ 41 revip.mf\ 42 sa.mf\ 43 sieve.mf\ 44 syslog.mf\ 45 sockmap.mf\ 46 status.mf\ 47 spf.mf\ 48 strip_domain_part.mf\ 49 valid_domain.mf\ 50 verp.mf\ 51 $(MF4_FILES:.mf4=.mf) 52 53if DSPAM_COND 54 MF_FILES += dspam.mf 55endif 56 57if NETTLE_COND 58 MF_FILES += dkim.mf 59endif 60 61noinst_HEADERS = \ 62 dspam.h\ 63 email.h\ 64 sa.h\ 65 sieve.h\ 66 syslog.h\ 67 _register.h\ 68 status.ex\ 69 status.h 70BUILT_SOURCES = $(noinst_HEADERS) 71 72EXTRA_DIST=$(inc_DATA) pp-setup $(MF4_FILES) mfex.awk mfh.awk dspam.mf 73 74MAINTAINERCLEANFILES=$(MF4_FILES:.mf4=.mf) 75 76SUFFIXES = .mf4 .mf .lint .ex 77 78M4=m4 79 80.mf.h: 81 $(AM_V_GEN)awk -f $(top_srcdir)/mflib/mfh.awk $< > $@ 82 83.mf.ex: 84 $(AM_V_GEN)awk -f $(top_srcdir)/mflib/mfex.awk $< > $@ 85 86 87.mf4.mf: 88 $(AM_V_GEN)$(M4) -s -DMF_AUTOHEADER $(top_srcdir)/mflib/pp-setup $< | sed 1d > $@ 89 90MF_LINT = $(MF_LINT_$(V)) 91MF_LINT_ = $(MF_LINT_$(AM_DEFAULT_VERBOSITY)) 92MF_LINT_0 = @echo LINT $<; 93 94.mf.lint: 95 $(MF_LINT)$(top_builddir)/src/mailfromd \ 96 --no-config \ 97 -I$(top_srcdir)/mflib \ 98 -I$(top_builddir)/mflib \ 99 --lint $< 100 101lint: $(MF_FILES:.mf=.lint) 102