graphics/makefile

31 lines
414 B
Makefile
Raw Permalink Normal View History

2024-06-19 16:21:12 -07:00
# FILE OPTIONS
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
VPATH = $(IN):$(OUT)
2024-06-19 16:21:12 -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/$*