INPUT = $(wildcard src/*.svg) OUTPUTPDF = $(INPUT:.svg=.pdf) OUTPUTPNG = $(INPUT:.svg=.png) RELEASE = Fedora-20 all: pdf png pdf: $(OUTPUTPDF) %.pdf: %.svg inkscape --export-pdf=pdf/$(RELEASE)-$(notdir $@) $< png: $(OUTPUTPNG) %.png: %.svg inkscape --export-png=png/$(RELEASE)-thumb-$(notdir $@) --export-width=250px --export-area=130:567:614:1048 --export-background=ffffffff $<; convert png/$(RELEASE)-thumb-$(notdir $@) -bordercolor "#666" -border 2x2 png/$(RELEASE)-thumb-$(notdir $@); clean: rm png/* rm pdf/*