]> 105106.c2e0p.group Git - postfix.git/blobdiff - Makefile
Add dovecot support
[postfix.git] / Makefile
index 840494bb68ddb310aadcb5a550b97a6ce90d5065..7022faedfca0c3ee6d74abfc363bd69a0efdda1a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,7 @@
-SRC := $(shell pwd)
-DST := /etc/postfix
+SUBDIRS := postfix postfixadmin dovecot
 
-INPUTS := main.cf  Makefile  master.cf  mysql/*  postgrey_whitelist_clients.local  postgrey_whitelist_recipients rbl_override
+all: $(SUBDIRS)
+.PHONY: $(SUBDIRS)
 
-all: $(INPUTS:%=$(DST)/%)
-
-$(DST)/%: $(SRC)/%
-       @mkdir -p $(@D)
-       cp $^ $@
+$(SUBDIRS):
+       $(MAKE) -C $@