| | |
| | | exclude := python-typing.tex |
| | | tex := $(wildcard *.tex) |
| | | tex := $(filter-out $(exclude), $(tex)) |
| | | chapters := $(wildcard chap/*.tex) |
| | | pdf := $(tex:.tex=.pdf) |
| | | |
| | | tikz := $(wildcard tikz/*.tex) |
| | | tikz_pdf = $(tikz:.tex=.pdf) |
| | | |
| | | EXERCISES := exercises |
| | | TIKZ := tikz |
| | | |
| | | all: $(pdf) |
| | | |
| | | |
| | | %.pdf: %.tex |
| | | %.pdf: %.tex $(exclude) |
| | | $(LATEX) $(LATEX_OPT) $< |
| | | if [ -f $(<:.tex=.bcf) ]; then touch $(<); $(BIBTEX) $(BIBTEX_OPT) $(<:.tex=); fi |
| | | $(LATEX) $(LATEX_OPT) $< |
| | |
| | | |
| | | clean: |
| | | rm -fv *.aux *.out *.bbl *.blg *.pytxcode *.toc *.loe *.thm *.nav *.bcf *.tdo *.log *.run.xml *.snm *.vrb *.synctex.gz *.fls |
| | | rm -fv chap/*.aux |
| | | rm -rfv _minted-* |
| | | make -C $(EXERCISES) clean |
| | | |
| | | clean-latexmk: |
| | | rm -rfv *.fdb_latexmk |
| | |
| | | make clean |
| | | make clean-latexmk |
| | | make clean-target |
| | | make -C $(EXERCISES) clean-all |
| | | make -C $(TIKZ) clean-all |
| | | |
| | | |
| | | |