.SUFFIXES = .txt .html %.html : %.txt rst2html.py $< $@ objects := $(patsubst %.txt,%.html,$(wildcard *.txt)) all: $(objects)