-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
76 lines (58 loc) · 1.76 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
##
TARGETS = bundler-main
FINAL = bundler-eurosys21-camera-ready.pdf
TEXFILES = $(wildcard *.tex)
KNITRFILES = $(wildcard graphs/*.Rnw)
KNITRTARGETS = $(subst graphs/,,$(KNITRFILES:.Rnw=.tex))
PDFS = $(addsuffix .pdf,$(TARGETS))
all: $(PDFS)
final: $(PDFS)
gs \
-dCompatibilityLevel=1.4 \
-dPDFSETTINGS=/default \
-dCompressFonts=true \
-dSubsetFonts=true \
-dNOPAUSE \
-dBATCH \
-sDEVICE=pdfwrite \
-sOutputFile=$(FINAL) \
-c ".setpdfwrite <</NeverEmbed [ ]>> setdistillerparams" \
-f $?
arxiv:
pdflatex --shell-escape "\\def\\forArxiv{1} \\input{bundler-main.tex}"
bibtex bundler-main
pdflatex --shell-escape "\\def\\forArxiv{1} \\input{bundler-main.tex}"
pdflatex --shell-escape "\\def\\forArxiv{1} \\input{bundler-main.tex}"
%.pdf: %.tex $(TEXFILES) $(KNITRTARGETS) usenix2019_v3.sty ref.bib imgs
pdflatex -shell-escape -shell-escape $*.tex
bibtex $*
pdflatex -shell-escape -shell-escape $*.tex
pdflatex -shell-escape -shell-escape $*.tex
.SECONDARY: $(KNITRTARGETS)
%.tex: graphs/%.Rnw
$(info $?)
Rscript -e "library(knitr); knit('$?')"
ecmp_delay.tex: figure/ecmp_delay.pdf
figure/ecmp_delay.pdf: graphs/ecmp_delay_rolling.r
Rscript graphs/ecmp_delay_rolling.r
imgs: $(wildcard imgs/*.pdf)
clean:
/bin/rm -f *.dvi *.aux *.ps *~ *.log *.out *.lot *.lof *.toc *.blg *.bbl url.sty
/bin/rm -rf cache
/bin/rm -rf $(PDFS) # $(KNITRTARGETS)
/bin/rm -rf _minted-$(TARGETS)
evince:
pdflatex -shell-escape $(TARGETS).tex
evince $(PDFS) &
acro:
pdflatex -shell-escape $(TARGETS).tex
acroread $(PDFS) &
osx:
pdflatex -shell-escape $(TARGETS).tex
open $(PDFS)
windows:
pdflatex -shell-escape $(TARGETS).tex
explorer.exe $(PDFS) &
home: osx
check:
pdflatex -shell-escape $(TARGETS).tex | grep -i -e "undefined" -e "multiply"