2024-06-19 16:21:12 -07:00
|
|
|
# FILE OPTIONS
|
2024-06-19 14:56:47 -07:00
|
|
|
IN = src
|
2024-06-19 16:21:12 -07:00
|
|
|
OUT = output
|
|
|
|
|
|
|
|
|
|
|
|
# IMAGE OPTIONS
|
2024-06-19 16:21:44 -07:00
|
|
|
ANTIALIASING = 5
|
2024-06-19 16:21:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
# ASYMPTOTE OPTIONS
|
2024-06-19 16:21:44 -07:00
|
|
|
OPTIONS = -antialias $(ANTIALIASING)
|
2024-06-19 16:21:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
# MAKEFILE OPTIONS
|
2024-06-19 14:56:47 -07:00
|
|
|
VPATH = $(IN):$(OUT)
|
|
|
|
|
|
|
|
|
2024-06-19 16:21:12 -07:00
|
|
|
|
2024-06-19 14:56:47 -07:00
|
|
|
%.svg: %.asy
|
2024-06-19 16:21:12 -07:00
|
|
|
mkdir -p $(OUT)/svg
|
|
|
|
asy -f svg $(OPTIONS) $< -o $(OUT)/svg/$*
|
2024-06-19 16:22:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
%.png: %.asy
|
|
|
|
mkdir -p $(OUT)/png
|
|
|
|
asy -f png $(OPTIONS) $< -o $(OUT)/png/$*
|
|
|
|
|
|
|
|
%.webp: %.asy
|
|
|
|
mkdir -p $(OUT)/webp
|
|
|
|
asy -f webp $(OPTIONS) $< -o $(OUT)/webp/$*
|