blob: c3ce4464fa02ff0fd1160653a912423469875baa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|