catala/examples/Makefile.common

23 lines
529 B
Makefile
Raw Normal View History

LATEXMK=latexmk
PYGMENTIZE=../../syntax_highlighting/pygments/pygments/env/bin/pygmentize
%.tex: %.catala
dune exec ../../src/main.exe -- --language=en Makefile $<
dune exec ../../src/main.exe --\
--debug \
--wrap_latex \
--language=en \
--pygmentize=$(PYGMENTIZE)\
LaTeX \
$<
%.pdf: %.tex
cd $(@D) && $(LATEXMK) -g -pdf -halt-on-error -shell-escape $(%F)
clean:
$(LATEXMK) -f -C $(SRC:.catala=.tex)
rm -rf $(SRC:.catala=.tex) $(SRC:.catala=.d) _minted-$(SRC:.catala=)
include $(wildcard $(SRC:.catala=.d))