BASES = en/timeline de/timeline EXTS = eps png ps pdf FILES = $(foreach ext,$(EXTS),$(foreach base,$(BASES),$(base).$(ext))) .PHONY: all all: $(FILES) %.eps: %.fig fig2dev -L eps $< $@ chmod 644 $@ .PRECIOUS: %.eps %.png: %.eps convert $< $@ chmod 644 $@ .PRECIOUS: %.ps %.ps: %.fig fig2dev -L ps $< $@ chmod 644 $@ %.pdf: %.ps ps2pdf $< $@ chmod 644 $@ .PHONY: clean clean: rm -f $(FILES)