cvsdist 98c3f09
# These could be used by sendmail, but are not part of the default install.
cvsdist 98c3f09
# To use them you will have to generate your own sendmail.cf with
cvsdist 98c3f09
#  FEATURE('whatever')
cvsdist 98c3f09
#
cvsdist 98c3f09
POSSIBLE += $(shell test -f bitdomain     && echo bitdomain.db)
cvsdist 98c3f09
POSSIBLE += $(shell test -f uudomain      && echo uudomain.db)
cvsdist 98c3f09
POSSIBLE += $(shell test -f genericstable && echo genericstable.db)
cvsdist 98c3f09
POSSIBLE += $(shell test -f userdb	  && echo userdb.db)
cvsdist 333a3fa
CFFILES   = sendmail.cf submit.cf
cvsdist 98c3f09
cvsdist 98c3f09
cvsdist 333a3fa
all: ${CFFILES} ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
cvsdist 98c3f09
cvsdist 98c3f09
userdb.db : userdb
cvsdist 98c3f09
	@makemap btree $@ < $<
cvsdist 98c3f09
cvsdist 98c3f09
%.db : %
cvsdist 98c3f09
	@makemap hash $@ < $<
cvsdist 98c3f09
cvsdist 333a3fa
%.cf : %.mc
cvsdist ad97987
	@if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
cvsdist ad97987
		mv -f $@ $@.bak; \
cvsdist ad97987
		m4 $< > $@; \
cvsdist ad97987
	fi;
cvsdist 333a3fa
cvsdist 98c3f09
clean:
cvsdist 98c3f09
	rm -f *.db *~
cvsdist 98c3f09