# -*- make -*- svg_targets = $(wildcard *.svg) pdf_targets = $(svg_targets:%.svg=%.pdf) png_targets = $(svg_targets:%.svg=%.png) png: $(png_targets) $(png_targets): %.png : %.svg inkscape --export-png=$@ $< pdf: $(pdf_targets) $(pdf_targets): %.pdf : %.svg inkscape --export-pdf=$@ $< clean: real_clean: clean rm -f $(pdf_targets)