# # Makefile to convert text files into BerkDB format # .DONE : done .SUFFIXES: .txt .db # # Databases to create # OBJ = j-urlbl.db j-policy.db JBINDIR = /usr/bin # # POLICY_SRC variable defines which files to include in your # policy database # # Depending on your Operating System, you can use one of this options : # - GNU make #POLICYSRC = $(wildcard j-policy.*.txt) # - SunOS make #POLICYSRC:sh =ls j-policy.*.txt # - List text files by hand POLICYSRC = j-policy.grey.txt j-policy.badmx.txt j-policy.base.txt .txt.db : @echo "** Building $@ ..." @if [ -f $@ ] ; then \ mv $@ $@.old ; \ fi $(JBINDIR)/j-makemap -b $@ -m e < $< all : $(OBJ) done j-policy.txt : $(POLICYSRC) cat $(POLICYSRC) > $@ clean : rm -f *.db done : @echo "*** Telling j-chkmail to reload databases..." $(JBINDIR)/j-ndc reload databases