TARGETS = $(notdir $(wildcard ../*.html)) all: $(TARGETS) update people %.html: ../%.html cat $< | sed -e 's/cid:/..\//' > $@.tmp mv $@.tmp $@ list: echo $(TARGETS)