]> 105106.c2e0p.group Git - postfix.git/blobdiff - Makefile
Reorganize files around subprojects.
[postfix.git] / Makefile
index 840494bb68ddb310aadcb5a550b97a6ce90d5065..6183414beeeb5231550a3fc5c2c12b7ae052aec2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,7 @@
-SRC := $(shell pwd)
-DST := /etc/postfix
+SUBDIRS := postfix postfixadmin 
 
-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 $@