KIT-BOOKS/ggg/Makefile

16 lines
438 B
Makefile

ggg-cards.pdf: ggg-cards.typ
typst compile ggg-cards.typ
.PHONY: dev
dev:
typst watch ggg-cards.typ
.PHONY: cards
cards: ggg-cards.pdf
typst compile ggg-cards.typ output/{0p}-ggg-cards.svg
ls output | while read -r a && read -r b; do echo "<img src='$a'/>, <img src='$b'/>"; done > geometrische-grundlagen-der-geometrieverarbeitung.csv
.PHONY: install
install: cards
cp output/* ~/.local/share/Anki2/Benutzer\ 1/collection.media/