I thought this is quite simple
%.png: ../figs/%.png
convert $? -resize '40%' $@
That is, I want to generate an image in this directory from the corresponding image in "../figs/" .
But, the above leads to an infinite chain of dependencies because ../figs/foo.png
matches %.png
and therefore make tries to check ../figs/../figs/foo.png
, which matches %.png
and therefore make tries to . . .
Eventually, make stops with "File name too long".
I must be missing something. What is a clean solution?