default: build/folksprak.pdf
.PHONY: default

temp/media/folksprak.pdf: source/media/folksprak.svg
	mkdir --parents temp/media
	convert source/media/folksprak.svg temp/media/folksprak.pdf

temp/folksprak.pdf: source/tex/folksprak.tex temp/media/folksprak.pdf
	mkdir --parents temp
	xelatex -output-directory=temp source/tex/folksprak.tex

build/folksprak.pdf: temp/folksprak.pdf
	mkdir --parents build
	cp --recursive temp/folksprak.pdf build/folksprak.pdf