I have a command that can take multiple types of input files and generate relevant output. IT does something similar to producing thumbnails from images. I want to write the recipe once and have a list of implicit rules that each call the recipe, e.g.:
%.png : %.jpg
%.png : %.jpeg
%.png : %.svg
%.png : %.gif
convert $< -resize 100x100 $@
This works for .gif but for the other file types I get "No rule to make target".
Is there a way to express this set of rules without duplicating the recipe?
picture.svgandpicture.jpeg? - Joerg S