diff Makefile.test @ 1:45c8592d5d13

initial version
author carl
date Fri, 10 Mar 2006 10:35:25 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile.test	Fri Mar 10 10:35:25 2006 -0800
@@ -0,0 +1,29 @@
+# These could be used by sendmail, but are not part of the default install.
+# To use them you will have to generate your own sendmail.cf with
+#  FEATURE('whatever')
+#
+POSSIBLE += $(shell test -f bitdomain     && echo bitdomain.db)
+POSSIBLE += $(shell test -f uudomain      && echo uudomain.db)
+POSSIBLE += $(shell test -f genericstable && echo genericstable.db)
+POSSIBLE += $(shell test -f userdb	  && echo userdb.db)
+CFFILES   = sendmail.cf submit.cf
+
+
+all: ${CFFILES} ${POSSIBLE} virtusertable.db access.db domaintable.db mailertable.db
+	@chown root:smmsp *.db
+
+userdb.db : userdb
+	@makemap btree $@ < $<
+
+%.db : %
+	@makemap hash $@ < $<
+
+%.cf : %.mc
+	@if test -f /usr/share/sendmail-cf/m4/cf.m4; then \
+		mv -f $@ $@.bak; \
+		m4 $< > $@; \
+	fi;
+
+clean:
+	rm -f *.db *~
+