CFDIR=	/usr/lib/sendmail-cf
M4=	m4
RM=	rm
MAKEMAP=makemap

DBFILE=	access.db domaintable.db mailertable.db masq-domains.db relay-domains.db virtusertable.db

%.cf:	%.mc
	if test -f $@ ; then $(RM) $@ ; fi
	$(M4) ${CFDIR}/m4/cf.m4 $< > $@ || ( $(RM) $@ && exit 1 )

%.db:	%
	$(MAKEMAP) hash $@ < $<

db:	$(DBFILE)
