-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (61 loc) · 1.88 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
MS = cvx-cactaceae
BIB = cvx-refs
# SI =
# CL =
# https://skim-app.sourceforge.io
# SKIM = /Applications/Skim.app/Contents/SharedSupport/displayline
OS := $(shell uname -s)
ifeq ($(OS),Linux)
OS=linux
endif
ifeq ($(OS),Darwin)
OS=osx
endif
all: ${MS}.pdf
cvx-cactaceae.pdf: ${MS}.tex ${BIB}.bib
pdflatex ${MS}
bibtex ${MS}
pdflatex ${MS}
pdflatex ${MS}
# cvx-cactaceae-si.pdf: ${SI}.tex ${MS}-refs.bib
# pdflatex ${SI}
# # Supp. Info. contains no references, bibtex freaks out.
# # bibtex ${SI}
# pdflatex ${SI}
# pdflatex ${SI}
# cvx-cactaceae-cover-letter.pdf: ${CL}.tex
# pdflatex ${CL}
# pdflatex ${CL}
# pdflatex ${CL}
krms: ${MS}.tex ${BIB}.bib
pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${MS}
bibtex ${MS}
pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${MS}
pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${MS}
# ${SKIM} -r 1 ${MS}.pdf ${MS}.tex
# krsi: ${SI}.tex ${BIB}.bib
# pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${SI}
# # Supp. Info. contains no references, bibtex freaks out.
# # bibtex ${SI}
# pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${SI}
# pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${SI}
# # ${SKIM} -r 1 ${SI}.pdf ${SI}.tex
# krcl: ${CL}.tex
# pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${CL}
# pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${CL}
# pdflatex -synctex=1 -interaction=nonstopmode -halt-on-error ${CL}
# ${SKIM} -r 1 ${CL}.pdf ${CL}.tex
kr: krms
clean:
rm -f \
*.bbl *.blg *.log *.aux *.toc *.fff *.ent *.ttt *.out *.fls \
*.fdb_latexmk *.efsuppfigure *.efsupptable \
*.dvi *.ps *.brf *.lof *.lot \
*converted-to.pdf *.tex~ README.html \
*-diff.tex
# For a satisfying, deep clean use scrub!
scrub: clean
rm -f ${MS}.pdf ${SI}.pdf ${CL}.pdf \
*.synctex.gz \
.DS_Store .Rapp.history .Rhistory \
*-diff.pdf *-kr-*.pdf