1 2 3 4 5 6 7 8 9 10 11 12
MAN_TARGETS = $(patsubst %.rst,%.1,$(wildcard *.rst)) all: $(MAN_TARGETS) %.1: %.rst rst2man $< > $@ clean: rm *.1 .PHONY: all clean