DST := /etc/dovecot INPUTS := dovecot-sql.conf.ext local.conf OUTPUTS := $(INPUTS:%=$(DST)/%) all: $(OUTPUTS) $(DST)/%: % @mkdir -p $(@D) cp $^ $@