
all: whitelist.db
	@echo > /dev/null

db: whitelist.db
	@echo > /dev/null

%.db: %
	@makemap -C /dev/null -N hash tmp.db < $<
	@chown .mail tmp.db
	@mv -f tmp.db $@

clean:
	@rm -f *.db *~

whitelist: whitelist.main config.d/*.wl config.d.shared/*.wl
	@echo "# !! Don't edit this file manually, you  must edit components" > whitelist
	@echo "# !! in config.d and config.d.shared directories. It must have" >> whitelist
	@echo "# !! .wl suffix at end of name." >> whitelist
	@echo "# !!" >> whitelist
	@echo "" >> whitelist
	@/bin/cat $^ >>$@

