-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
97 lines (87 loc) · 3.39 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
#
# Makefile for PHYS201 Slides
#
# Costas Andreopoulos <constantinos.andreopoulos@cern.ch>
#
ACYEAR = 202122
VERSION = v02
s00 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Intro\)
s0001 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Intro\ +\ Lecture\ 01\)
s01 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 01\)
s02 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 02\)
s03 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 03\)
s04 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 04\)
s05 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 05\)
s06 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 06\)
s07 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 07\)
s08 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 08\)
s09 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 09\)
s10 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 10\)
s11 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 11\)
s12 : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}\ \(Lecture\ 12\)
sall : NAME = PHYS201_${ACYEAR}-Slides-${VERSION}
frms : NAME = PHYS201_${ACYEAR}-Formula_Sheet-${VERSION}
all : NAME = PHYS201_${ACYEAR}-${VERSION}
s00 : tex_start add_tex00 tex_end pdf
s01 : tex_start add_tex01 tex_end pdf
s0001 : tex_start add_tex00 add_tex01 tex_end pdf
s02 : tex_start add_tex02 tex_end pdf
s03 : tex_start add_tex03 tex_end pdf
s04 : tex_start add_tex04 tex_end pdf
s05 : tex_start add_tex05 tex_end pdf
s06 : tex_start add_tex06 tex_end pdf
s07 : tex_start add_tex07 tex_end pdf
s08 : tex_start add_tex08 tex_end pdf
s09 : tex_start add_tex09 tex_end pdf
s10 : tex_start add_tex10 tex_end pdf
s11 : tex_start add_tex11 tex_end pdf
s12 : tex_start add_tex12 tex_end pdf
sall : tex_start add_tex00 add_tex01 add_tex02 add_tex03 add_tex04 add_tex05 add_tex06 add_tex07 add_tex08 add_tex09 add_tex10 add_tex11 add_tex12 tex_end pdf
seach : s0001 s02 s03 s04 s05 s06 s07 s08 s09 s10 s11 s12
tex_start:
echo '\documentclass{beamer}' > main_tmp.tex
echo '\input{slides_settings.tex}' >> main_tmp.tex
echo '\\begin{document}' >> main_tmp.tex
tex_end:
echo '\end{document}' >> main_tmp.tex
add_tex00: FORCE
echo '\input{slides_lecture00_main.tex}' >> main_tmp.tex
add_tex01: FORCE
echo '\input{slides_lecture01_main.tex}' >> main_tmp.tex
add_tex02: FORCE
echo '\input{slides_lecture02_main.tex}' >> main_tmp.tex
add_tex03: FORCE
echo '\input{slides_lecture03_main.tex}' >> main_tmp.tex
add_tex04: FORCE
echo '\input{slides_lecture04_main.tex}' >> main_tmp.tex
add_tex05: FORCE
echo '\input{slides_lecture05_main.tex}' >> main_tmp.tex
add_tex06: FORCE
echo '\input{slides_lecture06_main.tex}' >> main_tmp.tex
add_tex07: FORCE
echo '\input{slides_lecture07_main.tex}' >> main_tmp.tex
add_tex08: FORCE
echo '\input{slides_lecture08_main.tex}' >> main_tmp.tex
add_tex09: FORCE
echo '\input{slides_lecture09_main.tex}' >> main_tmp.tex
add_tex10: FORCE
echo '\input{slides_lecture10_main.tex}' >> main_tmp.tex
add_tex11: FORCE
echo '\input{slides_lecture11_main.tex}' >> main_tmp.tex
add_tex12: FORCE
echo '\input{slides_lecture12_main.tex}' >> main_tmp.tex
pdf: FORCE
pdflatex main_tmp.tex
mv main_tmp.pdf ${NAME}.pdf
frms: FORCE
pdflatex formula_sheet.tex
mv formula_sheet.pdf ${NAME}.pdf
clean: FORCE
rm *nav
rm *aux
rm *log
rm *out
rm *snm
rm *toc
rm main_tmp.*
FORCE: