FROM=from TO=test all: test/After.log $(TO)/%.log: $(FROM)/%.txt cp $< $(TO)/$*.log