-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
46 lines (37 loc) · 1.7 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FILE=paper-capstone-earthquake
O{TIONS=--shell-escape
all: ${FILE}.pdf
d: clean
pdflatex ${FILE}
biber ${FILE}
pdflatex ${FILE}
pdflatex ${FILE}
# -pdf tells latexmk to generate a PDF instead of DVI.
# -pdflatex="" tells latexmk to call a specific backend with specific options.
# -use-make tells latexmk to call make for generating missing files.
# -interaction=nonstopmode keeps the pdflatex backend from stopping at a
# missing file reference and interactively asking you for an alternative.
# -synctex=1 is required to jump between the source PDF and the text editor.
# -pvc (preview continuously) watches the directory for changes.
# -quiet suppresses most status messages (https://tex.stackexchange.com/questions/40783/can-i-make-latexmk-quieter).
%.pdf: %.tex
#latexmk -quiet -bibtex $(PREVIEW_CONTINUOUSLY) -f -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode" -use-make $<
latexmk -quiet $(PREVIEW_CONTINUOUSLY) -f -pdf -pdflatex="pdflatex -synctex=1 -interaction=nonstopmode" -use-make $<
# The .PHONY rule keeps make from processing a file named "watch" or "clean".
.PHONY: watch
# Set the PREVIEW_CONTINUOUSLY variable to -pvc to switch latexmk into the preview continuously mode
watch: PREVIEW_CONTINUOUSLY=-pvc
watch: ${FILE}.pdf
.PHONY: clean
# -bibtex also removes the .bbl files (http://tex.stackexchange.com/a/83384/79184).
clean:
latexmk -CA -bibtex
rm -f ${FILE}.run.xml
rm -rf *.tdo *.err *.lua *.out _*
dot:
dot -Tpdf -o images/singularity.pdf images/singularity.dot
info:
python bin/sysinfo.py
manual:
wget -O rivanna-manual.md https://raw.githubusercontent.com/laszewsk/mlcommons/main/www/content/en/docs/tutorials/rivanna.md
pandoc -o rivanna-manual-DONT.md rivanna-manual.md