# GNU makefile for deriving the various sintel file options TIFFDIR := ../sintel-4k-tiff PNGDIR := ../sintel-4k-png TIFFS := $(wildcard $(TIFFDIR)/*.tif $(TIFFDIR)/*.tiff) PNGS := $(addsuffix .png,$(basename $(notdir $(TIFFS)))) PNGS := $(patsubst %,$(PNGDIR)/%, $(PNGS)) all: $(PNGS) print: @echo $(TIFFS) @echo $(PNGS) $(PNGDIR)/MD5SUMS.txt: $(PNGS) cd $(PNGDIR) && md5sum $(PNGS) > $@ $(PNGDIR)/%.png: $(TIFFDIR)/%.tif convert $< $@ mv $@ $@.tmp pngcrush -q -srgb 0 -rem pHYs -rem vpAg \ -text b Title 'Sintel' \ -text b Author 'Blender Foundation | www.sintel.org' \ -text b Date 2011 \ $@.tmp $@ && rm $@.tmp advdef -q -z4 $@ .PHONEY: all print