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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
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
|