15 lines
514 B
Makefile
15 lines
514 B
Makefile
|
suits := puppets bread wheels blades chairs cards
|
||
|
values := 1 2 3 4 5 6 traveler knight wizard noble
|
||
|
cards := $(foreach suit,$(suits),$(foreach value,$(values),$(value)-$(suit)))
|
||
|
|
||
|
svgdeck: $(foreach card,$(cards),build/$(card).svg)
|
||
|
|
||
|
pngdeck: $(foreach card,$(cards),build/$(card).png)
|
||
|
|
||
|
build/%.svg: deck.asy cards.asy numerals.asy $(foreach suit,$(suits),$(suit).asy)
|
||
|
mkdir -p build
|
||
|
sh -c "buf_size=5000000 asy -globalwrite deck.asy"
|
||
|
|
||
|
build/%.png: build/%.svg
|
||
|
convert -density 512 -background transparent $< $@
|