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