-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (31 loc) · 1.19 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
TITLE = 2020_berkeley_txshift
.PHONY : all
minimal: $(TITLE).pdf clean
all: $(TITLE).pdf notes clean
$(TITLE).pdf: $(TITLE).tex header.tex
xelatex $(TITLE)
bibtex $(TITLE)
bibtex $(TITLE)
xelatex $(TITLE)
xelatex $(TITLE)
notes: $(TITLE)_withnotes.pdf
clean:
rm -f $(addprefix $(TITLE), .aux .log .nav .out .snm .toc .vrb .bbl .blg)
rm -f $(addprefix $(TITLE)_withnotes, \
.aux .log .nav .out .snm .toc .vrb .bbl .blg)
$(TITLE)_withnotes.pdf: $(TITLE)_withnotes.tex header.tex
xelatex $(TITLE)_withnotes
bibtex $(TITLE)_withnotes
bibtex $(TITLE)_withnotes
xelatex $(TITLE)_withnotes
xelatex $(TITLE)_withnotes
pdfjam $(TITLE)_withnotes.pdf \
--nup 1x2 --no-landscape --paper letterpaper --frame true --scale 0.9
mv $(TITLE)_withnotes-pdfjam.pdf $(TITLE)_withnotes.pdf
$(TITLE)_withnotes.tex: $(TITLE).tex Ruby/createVersionWithNotes.rb
Ruby/createVersionWithNotes.rb $(TITLE).tex $(TITLE)_withnotes.tex
web: $(TITLE).pdf $(TITLE)_withnotes.pdf
rsync --chmod=go+r $(TITLE).pdf \
[email protected]:/mirror/data/pub/users/nhejazi/present/$(TITLE).pdf
rsync --chmod=go+r $(TITLE)_withnotes.pdf \
[email protected]:/mirror/data/pub/users/nhejazi/present/$(TITLE)_withnotes.pdf