# This file is part of Mailfromd. # Copyright (C) 2007-2020 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 . incdir=$(pkgdatadir)/$(VERSION)/include inc_DATA =\ $(MF_FILES)\ $(PP_SETUP_FILE)\ status.mfh 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\ $(MF4_FILES:.mf4=.mf) if DSPAM_COND MF_FILES += dspam.mf endif if NETTLE_COND MF_FILES += dkim.mf endif 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-config \ -I$(top_srcdir)/mflib \ -I$(top_builddir)/mflib \ --lint $< lint: $(MF_FILES:.mf=.lint)