all: build/folksprak.pdf .PHONY: all clean: @ rm --recursive --force temp .PHONY: clean clear: clean @ rm --recursive --force build .PHONY: clear temp/media/logo.pdf: source/media/logo.svg @ echo -e '-- converting logo ...' @ mkdir --parents temp/media @ convert source/media/logo.svg temp/media/logo.pdf temp/folksprak.pdf: source/tex/folksprak.tex source/tex/packages.tex source/tex/settings.tex source/tex/meta.tex source/tex/commands.tex source/tex/preface.tex source/tex/grammar.tex source/tex/phonology_and_orthography.tex source/tex/conjugation.tex source/tex/declension.tex source/tex/attributes.tex temp/media/logo.pdf @ echo -e '-- compiling document ...' @ mkdir --parents temp @ xelatex -output-directory=temp source/tex/folksprak.tex > /dev/null @ xelatex -output-directory=temp source/tex/folksprak.tex > /dev/null build/folksprak.pdf: temp/folksprak.pdf @ mkdir --parents build @ cp --recursive temp/folksprak.pdf build/folksprak.pdf