all:
	if [ -f virtusertable ]; then \
		makemap hash virtusertable < virtusertable;fi

	if [ -f authinfo ]; then \
		makemap hash authinfo < authinfo;fi
	if [ -f genericstable ]; then \
		makemap hash genericstable < genericstable;fi

	if [ -f access ]; then \
		makemap hash access < access;fi

	if [ -f mailertable ]; then \
		makemap hash mailertable < mailertable;fi
#	if [ -f aliases ]; then \
#		/usr/bin/newaliases;fi
	kill -HUP `head -1 /var/run/sendmail.pid`
	kill -HUP `head -1 /var/spool/clientmqueue/sm-client.pid`
cf:
	if [ -f sendmail.mc ]; then\
		/usr/bin/m4 < sendmail.mc > sendmail.cf;fi
clean:
	rm -f *.db
