mirror of
https://github.com/CatalaLang/catala.git
synced 2024-11-12 21:48:25 +03:00
23 lines
529 B
Makefile
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))
|