2023-07-19 18:31:19 +02:00

19 lines
901 B
Makefile

default: wasocaml.pdf
wasocaml.bcf: mintedstyle wasocaml.tex roboto bib.bib
texfot xelatex -shell-escape wasocaml.tex
texfot xelatex -shell-escape wasocaml.tex
wasocaml.pdf: mintedstyle wasocaml.tex roboto wasocaml.bbl
texfot xelatex -shell-escape wasocaml.tex
texfot xelatex -shell-escape wasocaml.tex
wasocaml.bbl: wasocaml.bcf
biber -quiet wasocaml.bcf --output-file wasocaml.bbl
mintedstyle:
(diff ./webassembly.py /usr/lib/python3/dist-packages/pygments/lexers/webassembly.py > /dev/null) || (echo "please install the correct wasm file for syntax highlighting by running cp ./webassembly.py /usr/lib/python3/dist-packages/pygments/lexers/webassembly.py" && exit 1)
roboto:
fc-list | grep "RobotoMono Nerd" > /dev/null || (echo "please install RobotoMono font, see: https://git.zapashcanon.fr/zapashcanon/dot-files/src/branch/master/scripts/install_dist_software.sh#L8-L21" && exit 1)