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