-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (19 loc) · 774 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (19 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PYTHON ?= python3
.PHONY: validate paper clean
validate:
$(PYTHON) scripts/validate.py
$(PYTHON) scripts/test_validator.py
paper:
@if command -v latexmk >/dev/null 2>&1; then \
cd paper && latexmk -pdf -interaction=nonstopmode -halt-on-error main.tex; \
else \
cd paper && pdflatex -interaction=nonstopmode -halt-on-error main.tex && \
bibtex main && \
pdflatex -interaction=nonstopmode -halt-on-error main.tex && \
pdflatex -interaction=nonstopmode -halt-on-error main.tex; \
fi
clean:
@if command -v latexmk >/dev/null 2>&1; then cd paper && latexmk -C main.tex; fi
rm -f paper/main.aux paper/main.bbl paper/main.blg paper/main.fdb_latexmk
rm -f paper/main.fls paper/main.log paper/main.out paper/main.pdf
rm -f paper/main.synctex.gz paper/main.toc