aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 25 insertions, 0 deletions
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