catala/examples/Makefile.common
2020-04-20 09:02:08 +02:00

23 lines
529 B
Makefile

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))