# # THM=$(wildcard *.thm) CMP=$(wildcard *.cmp) all:genius thm2ppm int2ppm decomp ${THM:%.thm=%.ppm} ${CMP:%.cmp=%.ppm} genius:genius.o decomp: decomp.o decompress.o int2ppm:int2ppm.c thm2ppm:thm2ppm.c %.ppm:%.thm thm2ppm thm2ppm < ${@:%.ppm=%.thm} > $@ %.ppm:%.int int2ppm int2ppm < ${@:%.ppm=%.int} > $@ %.int:%.cmp decomp decomp < ${@:%.int=%.cmp} > $@ clean: /bin/rm -f genius thm2ppm int2ppm decomp *.o *~ core a.out