-SRC := $(shell pwd)
-DST := /etc/postfix
+SUBDIRS := postfix postfixadmin 
 
-INPUTS := configuration/* configuration/mysql/*
+all: $(SUBDIRS)
+.PHONY: $(SUBDIRS)
 
-all: $(INPUTS:configuration/%=$(DST)/%) postfixadmin
-
-postfixadmin:
-       ./setup-postfix.sh
-
-$(DST)/%: $(SRC)/%
-       @mkdir -p $(@D)
-       cp $^ $@
+$(SUBDIRS):
+       $(MAKE) -C $@