26 lines
650 B
Makefile
26 lines
650 B
Makefile
PROJECT=dekker_thesis
|
|
|
|
MZN_LISTINGS := $(addsuffix tex, $(wildcard assets/mzn/*.mzn) )
|
|
PY_LISTINGS := $(addsuffix tex, $(wildcard assets/py/*.py) )
|
|
|
|
.PHONY: $(PROJECT).pdf clean clobber
|
|
|
|
$(PROJECT).pdf: $(PROJECT).tex
|
|
latexmk -use-make $<
|
|
|
|
listings: $(MZN_LISTINGS) $(PY_LISTINGS)
|
|
|
|
%.mzntex : %.mzn
|
|
pipenv run pygmentize -f latex -Olinenos=True,texcomments=True,escapeinside="@@",verboptions="xleftmargin=5mm" $< > $@
|
|
|
|
%.pytex : %.py
|
|
pipenv run pygmentize -f latex -Olinenos=True,texcomments=True,escapeinside="@@",verboptions="xleftmargin=5mm" $< > $@
|
|
|
|
clean:
|
|
latexmk -c
|
|
|
|
clobber:
|
|
latexmk -C
|
|
rm -f assets/mzn/*.mzntex
|
|
rm -f assets/py/*.pytex
|