USERS != ls plain | xargs basename -s .png all: plain cube thoughts pets ball heart disco out/plain/%.png: plain/%.png | out/plain/ cp $< $@ out/cube/%cube.gif: plain/%.png mkcube cube.scene | out/cube/ ./mkcube $< $@ out/pets/%pets.gif: plain/%.png tools/petpet/ | out/pets/ ./tools/petpet/init.js $< $@ out/thoughts/%thoughts.png: plain/%.png mkthoughts thoughts/ | out/thoughts/ ./mkthoughts $< $@ $$(grep "^$$(basename -s .png $<) " thoughts/colors.txt | cut -d' ' -f 2) out/ball/%ball.png: plain/%.png tools/spherize | out/ball/ ./tools/spherize -a 1.2 -b none $< $@ out/heart/%heart.png: plain/%.png ./mkheart | out/heart/ ./mkheart $< $@ out/disco/%disco.gif: plain/%.png ./mkdisco discooverlay.mkv | out/disco/ ./mkdisco $< $@ out/%/: mkdir -p $@ discooverlay.mkv: mkdiscooverlay ./mkdiscooverlay plain: $(patsubst %, out/plain/%.png, $(USERS)) cube: $(patsubst %, out/cube/%cube.gif, $(USERS)) pets: $(patsubst %, out/pets/%pets.gif, $(USERS)) thoughts: $(patsubst %, out/thoughts/%thoughts.png, $(USERS)) ball: $(patsubst %, out/ball/%ball.png, $(USERS)) heart: $(patsubst %, out/heart/%heart.png, $(USERS)) disco: $(patsubst %, out/disco/%disco.gif, $(USERS)) clean: rm -rf out .PHONY: all plain cube thoughts pets ball heart disco out/ball/lilithball.png: .PHONY: out/ball/lilithball.png