From b63943cc27cb06342d08879b57c08902e0850581 Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Tue, 31 Mar 2026 02:37:31 +0200 Subject: add makefile and readme --- Makefile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..c3ce4464 --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +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 -- cgit v1.2.3