### Makefile for cryptomail PRP = twofish KEYSZ = 256 USER = cryptomail ASUSER = become $(USER) -g$(USER) -- all: config.files crontab.stamp config.files: config splitconf config update-addrcheck crontab.stamp: crontab @if [ -f really-install-crontab ]; then \ echo "crontab -u $(USER) crontab"; \ crontab -u $(USER) crontab; \ else \ echo "(Not installing crontab.)"; \ fi touch crontab.stamp install: all db/keyring db/cryptomail.db db: mkdir -p -m 700 db.new chown $(USER):$(USER) db.new mv db.new db db/keyring: db $(ASUSER) \ key -k db/keyring add -abinary -b$(KEYSZ) -eforever \ cryptomail prp=$(PRP) db/cryptomail.db: db $(ASUSER) bin/cryptomail initdb clean: splitconf -d config rm -f config.files crontab.stamp realclean: clean rm -rf db .PHONY: clean all install