figs := $(wildcard */*.fig) $(wildcard */*-FIGURES/*.fig)
pngs := $(figs:.fig=.png)

all: $(pngs)

$(pngs): %.png: %.fig
	convert -rotate 90 -trim $< $@

clean:
	rm -f $(pngs)
