-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathMakeSrc_lectures.mk
37 lines (26 loc) · 1.09 KB
/
MakeSrc_lectures.mk
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
# Common portion of the Makefile for each lecture:
# everything except the definition of LEC
# (Thanks, Jianan!)
WEBDIR = ../Web/assets/lectures
DROPBOXDIR = ~/Dropbox/Teaching/Tools4RR
${LEC}.pdf: ${LEC}.tex ../LaTeX/header.tex
xelatex ${LEC}
notes: ${LEC}_withnotes.pdf
pdf: ${LEC}.pdf notes
all: ${LEC}.pdf notes web dropbox
${LEC}_withnotes.pdf: ${LEC}_withnotes.tex ../LaTeX/header.tex
xelatex ${LEC}_withnotes
pdfnup ${LEC}_withnotes.pdf --nup 1x2 --no-landscape --paper letterpaper --frame true --scale 0.9
mv ${LEC}_withnotes-nup.pdf ${LEC}_withnotes.pdf
${LEC}_withnotes.tex: ${LEC}.tex ../Ruby/createVersionWithNotes.rb
../Ruby/createVersionWithNotes.rb ${LEC}.tex ${LEC}_withnotes.tex
web: ${WEBDIR}/${LEC}.pdf ${WEBDIR}/${LEC}_withnotes.pdf
${WEBDIR}/${LEC}.pdf: ${LEC}.pdf
cp ${LEC}.pdf ${WEBDIR}/
${WEBDIR}/${LEC}_withnotes.pdf: ${LEC}_withnotes.pdf
cp ${LEC}_withnotes.pdf ${WEBDIR}/
dropbox: ${DROPBOXDIR}/${LEC}_withnotes.pdf
${DROPBOXDIR}/${LEC}_withnotes.pdf: ${LEC}_withnotes.pdf
cp ${LEC}_withnotes.pdf ${DROPBOXDIR}/
clean:
rm *.aux *.log *.nav *.out *.snm *.toc *.vrb