SRC := $(shell pwd) DST := /etc/postfix INPUTS := main.cf Makefile master.cf mysql/* postgrey_whitelist_clients.local postgrey_whitelist_recipients rbl_override all: $(INPUTS:%=$(DST)/%) $(DST)/%: $(SRC)/% @mkdir -p $(@D) cp $^ $@