forked from TeamBasedInquiryLearning/linear-algebra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
143 lines (119 loc) · 4.95 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
all: pdf/rats/rat-*.pdf \
pdf/slides/slides*pdf \
pdf/course-notes.pdf \
pdf/course-slides.pdf \
pdf/course-slides-sectioned.pdf \
pdf/standards.pdf \
pdf/sample-exercises.pdf \
pdf/facilitator-notes.pdf \
pdf/handouts/handout-*.pdf \
pdf/definitions.pdf
slides: pdf/slides/slides-1-E.pdf pdf/slides/slides-2-V.pdf pdf/slides/slides-4-A.pdf \
pdf/slides/slides-5-M.pdf pdf/slides/slides-6-G.pdf pdf/slides/slides-7-P.pdf
pdf/course-notes.pdf: tex/course-notes.sty tex/tbil-la.sty tex/course-notes.tex \
tex/modules/*/activities.tex tex/modules/*/standards.tex tex/index.tex
cd tex; \
pdflatex --output-directory=aux course-notes.tex; \
pdflatex --output-directory=aux course-notes.tex; \
mv aux/course-notes.pdf ../pdf
pdf/definitions.pdf: tex/definitions.tex tex/tbil-la.sty tex/course-notes.tex \
tex/modules/*/activities.tex
cd tex; \
pdflatex --output-directory=aux definitions.tex; \
pdflatex --output-directory=aux definitions.tex; \
mv aux/definitions.pdf ../pdf
pdf/activities.pdf: tex/activities.tex tex/tbil-la.sty tex/course-notes.tex \
tex/modules/*/activities.tex
cd tex; \
pdflatex --output-directory=aux activities.tex; \
pdflatex --output-directory=aux activities.tex; \
mv aux/activities.pdf ../pdf
pdf/course-slides.pdf: tex/course-slides.sty tex/tbil-la.sty tex/course-slides.tex \
tex/modules/*/activities.tex tex/modules/*/standards.tex tex/index.tex tex/modules/0-I/index.tex
cd tex; \
pdflatex --output-directory=aux course-slides.tex; \
pdflatex --output-directory=aux course-slides.tex; \
mv aux/course-slides.pdf ../pdf
pdf/course-slides-sectioned.pdf: tex/course-slides.sty tex/tbil-la.sty tex/course-slides-sectioned.tex \
tex/modules/*/activities.tex tex/modules/*/index.tex tex/modules/*/standards.tex
cd tex; \
pdflatex --output-directory=aux course-slides-sectioned.tex; \
pdflatex --output-directory=aux course-slides-sectioned.tex; \
mv aux/course-slides-sectioned.pdf ../pdf
pdf/standards.pdf: tex/tbil-la.sty tex/standards.tex tex/modules/*/standards.tex
cd tex; pdflatex --output-directory=aux standards.tex; \
mv aux/standards.pdf ../pdf
pdf/facilitator-notes.pdf: tex/facilitator-notes.tex
cd tex; pdflatex --output-directory=aux facilitator-notes.tex; \
mv aux/facilitator-notes.pdf ../pdf
pdf/sample-exercises.pdf: tex/sample-exercises.tex
cd tex; pdflatex --output-directory=aux sample-exercises.tex; \
mv aux/sample-exercises.pdf ../pdf
#slides
pdf/slides/slides-1-E.pdf: tex/tbil-la.sty tex/course-slides.sty \
tex/modules/1-E/activities.tex \
tex/modules/1-E/index.tex
cd tex; \
pdflatex --output-directory=aux slides/slides-1-E.tex; \
pdflatex --output-directory=aux slides/slides-1-E.tex; \
mv aux/slides-1-E.pdf ../pdf/slides
pdf/slides/slides-2-V.pdf: tex/tbil-la.sty tex/course-slides.sty \
tex/modules/2-V/activities.tex \
tex/modules/2-V/index.tex
cd tex; \
pdflatex --output-directory=aux slides/slides-2-V.tex; \
pdflatex --output-directory=aux slides/slides-2-V.tex; \
mv aux/slides-2-V.pdf ../pdf/slides
pdf/slides/slides-4-A.pdf: tex/tbil-la.sty tex/course-slides.sty \
tex/modules/4-A/activities.tex \
tex/modules/4-A/index.tex
cd tex; \
pdflatex --output-directory=aux slides/slides-4-A.tex; \
pdflatex --output-directory=aux slides/slides-4-A.tex; \
mv aux/slides-4-A.pdf ../pdf/slides
pdf/slides/slides-5-M.pdf: tex/tbil-la.sty tex/course-slides.sty \
tex/modules/5-M/activities.tex \
tex/modules/5-M/index.tex
cd tex; \
pdflatex --output-directory=aux slides/slides-5-M.tex; \
pdflatex --output-directory=aux slides/slides-5-M.tex; \
mv aux/slides-5-M.pdf ../pdf/slides
pdf/slides/slides-6-G.pdf: tex/tbil-la.sty tex/course-slides.sty \
tex/modules/6-G/activities.tex \
tex/modules/6-G/index.tex
cd tex;\
pdflatex --output-directory=aux slides/slides-6-G.tex; \
pdflatex --output-directory=aux slides/slides-6-G.tex; \
mv aux/slides-6-G.pdf ../pdf/slides
pdf/slides/slides-7-P.pdf: tex/tbil-la.sty tex/course-slides.sty \
tex/modules/7-P/sections/*.tex \
tex/modules/7-P/index.tex
cd tex; \
pdflatex --output-directory=aux slides/slides-7-P.tex; \
pdflatex --output-directory=aux slides/slides-7-P.tex; \
mv aux/slides-7-P.pdf ../pdf/slides
#RATS
pdf/rats/rat-*.pdf: tex/modules/*/readiness/test.tex tex/rats/rat-*.tex
cd tex; \
for file in rats/*.tex; do \
pdflatex --output-directory aux $$file; \
done;\
cd aux; \
for file in rat*.pdf; do \
mv $$file ../../pdf/rats/$$file; \
done;
#Handouts
pdf/handouts/handout-*.pdf: tex/handouts/*/handout-*.tex \
tex/handouts/course-notes-handouts.sty \
tex/course-notes.sty \
tex/modules/*/readiness/outcomes.tex \
tex/modules/*/readiness/resources.tex \
tex/modules/*/activities.tex
cd tex; \
for file in handouts/*/handout*.tex; do \
pdflatex --output-directory aux $$file; \
done;\
cd aux; \
for file in handout*.pdf; do \
mv $$file ../../pdf/handouts/$$file; \
done;