This repository has been archived by the owner on Aug 22, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
124 lines (109 loc) · 2.41 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
all:
make clean
make collect
make abjad/book
make compile
make open
fast:
make abjad/book/composition
make compile
make open
collect:
scripts/collect-modules
scripts/collect-scores
say "collected assets"
examples:
$(MAKE) -C assets examples
abjad/book:
abjad-book \
-a ./assets \
-g ./abjadbook.cfg \
-l . \
-y ./stylesheet.ily \
source/chapters/*.tex
say "rerendered all chapters"
abjad/book/notation:
abjad-book \
-a ./assets \
-g ./abjadbook.cfg \
-l . \
-y ./stylesheet.ily \
source/chapters/a-model-of-notation.tex
say "rerendered chapter 2"
abjad/book/time-tools:
abjad-book \
-a ./assets \
-g ./abjadbook.cfg \
-l . \
-y ./stylesheet.ily \
source/chapters/time-tools.tex
say "rerendered chapter 3"
abjad/book/composition:
abjad-book \
-a ./assets \
-g ./abjadbook.cfg \
-l . \
-y ./stylesheet.ily \
source/chapters/a-model-of-composition.tex
say "rerendered chapter 4"
abjad/book/practicalities:
abjad-book \
-a ./assets \
-g ./abjadbook.cfg \
-l . \
-y ./stylesheet.ily \
source/chapters/practicalities.tex
say "rerendered chapter 5"
compile:
xelatex \
-shell-escape \
dissertation.tex
bibtex dissertation.aux
xelatex \
-shell-escape \
dissertation.tex
xelatex \
-shell-escape \
dissertation.tex
#xelatex dissertation.tex
#makeindex dissertation.tex
#xelatex dissertation.tex
say "recompiled document"
compile/fast:
xelatex \
-shell-escape \
dissertation.tex
compile/talk:
xelatex \
-shell-escape \
talk.tex
clean/temp:
rm -Rif assets/tmp*
rm -Rif tmp/tmp*
rm -Rif dissertation.aux
rm -Rif dissertation.bbl
rm -Rif dissertation.bcf
rm -Rif dissertation.blg
rm -Rif dissertation.idx
rm -Rif dissertation.ilg
rm -Rif dissertation.ind
rm -Rif dissertation.ist
rm -Rif dissertation.out
rm -Rif dissertation.run.xml
rm -Rif dissertation.toc
find . -name "*.aux" -exec rm -rf {} \;
find . -name "*.bbl" -exec rm -rf {} \;
find . -name "*.blg" -exec rm -rf {} \;
find . -name "*.lof" -exec rm -rf {} \;
find . -name "*.log" -exec rm -rf {} \;
find . -name "*.out" -exec rm -rf {} \;
find . -name "*.pyc" -exec rm -rf {} \;
find . -name "*.toc" -exec rm -rf {} \;
say "cleaned temp files"
clean/assets:
rm -Rif assets/lilypond*
rm -Rif assets/graphviz*
open:
open dissertation.pdf
copy-style:
cp dissertation.py /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygments/styles/dissertation.py