# -*- makefile -*- # Converter rule IN := ppm OUT := png %.$(OUT): %.$(IN) pnmtopng <"$<" >"$@" # Generic converter rules for pipe conveters. .DELETE_ON_ERROR: INS := $(shell ls *.$(IN)) OUTS := $(patsubst %.$(IN),%.$(OUT),$(INS)) .PHONY: all debug all: $(OUTS) debug: @echo INS $(INS) @echo OUTS $(OUTS)