Ralf Wildenhues wrote: > I think POSIX requires the part between `:' and `=' to be nonempty, but > not the part after `='. So write > > A = foo.h > LIST = $(A) $(B) > LIST_H = $(LIST:.h=) > > Hope that helps. It works, thanks.
Still on the portability issue, I have some doubts about the following hack, to create an output file of the same type as the input one: SUFFIXES = .png .small.png .png.small.png: convert -geometry $(SMALL_WIDTH)x$(SMALL_HEIGHT) $< $@ I didn't found any failure yet, but I'm not 100% sure it will work everywhere.