-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
104 lines (74 loc) · 2.96 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# This work is dedicated to the public domain.
default: latexmk # default target if you just type "make"
# Resources and rules for the introductory chapter. Sample 'make' rule
# included to show how you can process data as you compile your thesis
# using standard GNU make constructs.
deps += intro/intro.tex # intro/processed.tex
cleans += intro/intro.aux # intro/processed.tex
# intro/processed.tex: intro/sample.tex
# sed -e s/terrible/wonderful/ $< >$@
## Chapters
deps += mechanism/mechanism.tex
cleans += mechanism/mechanism.aux
deps += two-routes-estimation/two-routes-estimation.tex
cleans += two-routes-estimation/two-routes-estimation.aux
deps += pro-ndi/pro-ndi.tex
cleans += pro-ndi/pro-ndi.aux
deps += evil-ndi/evil-ndi.tex
cleans += evil-ndi/evil-ndi.aux
# These should get re-factored into proper chapters
deps += experimental-description/experimental-aims.tex experimental-description/experimental-plan.tex
cleans += experimental-description/experimental-aims.aux experimental-description/experimental-plan.aux
## Appendices
deps += appendices/graphical-models/graphical-models.tex \
appendices/kappa-extension/kappa-extension.tex \
appendices/400words/400words.tex \
appendices/survey-items/survey-items.tex \
appendices/numbers/numbers.tex \
appendices/Evil-NDI-intervention/Evil-NDI-intervention.tex \
appendices/Pro-NDI-intervention/Pro-NDI-intervention.tex \
appendices/coding/codingpacket-blind-Oct26.pdf \
appendices/coding/coding.tex \
appendices/imputation/imputation.tex
cleans += graphical-models/graphical-models.aux \
appendices/kappa-extension/kappa-extension.aux \
appendices/400words/400words.aux \
appendices/survey-items/survey-items.aux \
appendices/numbers/numbers.aux \
appendices/Evil-NDI-intervention/Evil-NDI-intervention.aux \
appendices/Pro-NDI-intervention/Pro-NDI-intervention.aux \
appendices/coding/coding.aux \
appendices/imputation/imputation.aux
# The thesis itself. We move the PDF to a new filename so that viewers
# don't keep on trying to reload the file as it's being written and
# rewritten by pdfLaTeX.
deps += myucthesis.cls uct12.clo
bibdeps = setup.tex fixed.bib thesis.bib
cleans += thesis.pdf setup.aux
toplevels += thesis.pdf
thesis.pdf: thesis.tex $(deps) $(bibdeps)
lualatex -synctex=1 --file-line-error --shell-escape thesis
# Note - the below are relying on config in latexmkrc (also in this dir)
latexmk: thesis.tex $(deps)
latexmk thesis
continuous: thesis.tex $(deps)
latexmk -pvc thesis
# Approval page
cleans += approvalpage.aux approvalpage.log approvalpage.pdf
toplevels += approvalpage.pdf
approvalpage.pdf: approvalpage.tex $(deps)
latexmk approvalpage
# Helpers
# This is a copy from my proposal... not tested yet! You'll still need to copy
# over the python file, etc.
diff:
./git_texdiff.py proposal_diff_base
cd diff
latexmk -pdf -bibtex thesis-proposal.tex
# -bibtex required to delete *.bbl files
latexmk -bibtex -c
cd ..
all: $(toplevels)
clean:
latexmk -c
-rm -f $(cleans)