USERS != ls plain | xargs basename -s .png all: cube thoughts petpet out/cube/%cube.gif: plain/%.png mkcube tools/Vulkan-Tools/ Makefile | out/cube/ ./mkcube $< $@ out/petpet/pet_%.gif: plain/%.png tools/petpet/ Makefile | out/petpet/ ./tools/petpet/init.js $< $@ out/thoughts/%thoughts.png: plain/%.png mkthoughts thoughts/ Makefile | out/thoughts/ ./mkthoughts $< $@ $$(grep "^$$(basename -s .png $<) " thoughts/colors.txt | cut -d' ' -f 2) out/%/: mkdir -p $@ cube: $(patsubst %, out/cube/%cube.gif, $(USERS)) petpet: $(patsubst %, out/petpet/pet_%.gif, $(USERS)) thoughts: $(patsubst %, out/thoughts/%thoughts.png, $(USERS)) clean: rm -rf out .PHONY: all cube thoughts petpet .NOTPARALLEL: cube