-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
184 lines (126 loc) · 7.04 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
OUTDIR = build
FLAGS_PDFLATEX = -use-make -bibtex -pdf -outdir=$(OUTDIR)
FLAGS_XELATEX = -use-make -bibtex -xelatex -outdir=$(OUTDIR)
FLAGS_LUALATEX = -use-make -bibtex -lualatex -outdir=$(OUTDIR)
###############################################################################
all: paper-ieeetran paper-sigchi paper-acm-sig-alternate paper-llncs2e poster poster-nccr presentation-simple presentation-hri
output: output-paper-ieeetran output-paper-sigchi output-paper-acm-sig-alternate output-paper-llncs2e output-poster output-poster-nccr output-presentation-simple output-presentation-hri
clean-output:
rm -rf output/
clean: clean-paper-ieeetran clean-paper-sigchi clean-paper-acm-sig-alternate clean-paper-llncs2e clean-poster clean-poster-nccr clean-presentation-simple clean-presentation-hri
###############################################################################
# IEEEtran paper
###############################################################################
paper-ieeetran: paper-ieeetran/$(OUTDIR)/paper-ieeetran.pdf
paper-ieeetran/$(OUTDIR)/paper-ieeetran.pdf: paper-ieeetran/paper-ieeetran.tex
mkdir -p paper-ieeetran/$(OUTDIR)
cd paper-ieeetran && latexmk $(FLAGS_PDFLATEX) paper-ieeetran.tex
output-paper-ieeetran: output/paper-ieeetran/paper-ieeetran.pdf
output/paper-ieeetran/paper-ieeetran.pdf: paper-ieeetran
mkdir -p output/paper-ieeetran/
cp paper-ieeetran/$(OUTDIR)/paper-ieeetran.pdf output/paper-ieeetran/
clean-paper-ieeetran:
rm -f paper-ieeetran/$(OUTDIR)/*
###############################################################################
# SIGCHI paper
###############################################################################
paper-sigchi: paper-sigchi/$(OUTDIR)/paper-sigchi.pdf
paper-sigchi/$(OUTDIR)/paper-sigchi.pdf: paper-sigchi/paper-sigchi.tex
mkdir -p paper-sigchi/$(OUTDIR)
cd paper-sigchi && latexmk $(FLAGS_PDFLATEX) paper-sigchi.tex
output-paper-sigchi: output/paper-sigchi/paper-sigchi.pdf
output/paper-sigchi/paper-sigchi.pdf: paper-sigchi
mkdir -p output/paper-sigchi/
cp paper-sigchi/$(OUTDIR)/paper-sigchi.pdf output/paper-sigchi/
clean-paper-sigchi:
rm -f paper-sigchi/$(OUTDIR)/*
###############################################################################
# ACM SIG Alternate paper
###############################################################################
paper-acm-sig-alternate: paper-acm-sig-alternate/$(OUTDIR)/paper-acm-sig-alternate.pdf
paper-acm-sig-alternate/$(OUTDIR)/paper-acm-sig-alternate.pdf: paper-acm-sig-alternate/paper-acm-sig-alternate.tex
mkdir -p paper-acm-sig-alternate/$(OUTDIR)
cd paper-acm-sig-alternate && latexmk $(FLAGS_PDFLATEX) paper-acm-sig-alternate.tex
output-paper-acm-sig-alternate: output/paper-acm-sig-alternate/paper-acm-sig-alternate.pdf
output/paper-acm-sig-alternate/paper-acm-sig-alternate.pdf: paper-acm-sig-alternate
mkdir -p output/paper-acm-sig-alternate/
cp paper-acm-sig-alternate/$(OUTDIR)/paper-acm-sig-alternate.pdf output/paper-acm-sig-alternate/
clean-paper-acm-sig-alternate:
rm -f paper-acm-sig-alternate/$(OUTDIR)/*
###############################################################################
# llncs2e paper
###############################################################################
paper-llncs2e: paper-llncs2e/$(OUTDIR)/paper-llncs2e.pdf
paper-llncs2e/$(OUTDIR)/paper-llncs2e.pdf: paper-llncs2e/paper-llncs2e.tex
mkdir -p paper-llncs2e/$(OUTDIR)
cd paper-llncs2e && latexmk $(FLAGS_PDFLATEX) paper-llncs2e.tex
output-paper-llncs2e: output/paper-llncs2e/paper-llncs2e.pdf
output/paper-llncs2e/paper-llncs2e.pdf: paper-llncs2e
mkdir -p output/paper-llncs2e/
cp paper-llncs2e/$(OUTDIR)/paper-llncs2e.pdf output/paper-llncs2e/
clean-paper-llncs2e:
rm -f paper-llncs2e/$(OUTDIR)/*
###############################################################################
# Simple baposter
###############################################################################
poster: poster/$(OUTDIR)/poster.pdf
poster/$(OUTDIR)/poster.pdf: poster/poster.tex
mkdir -p poster/$(OUTDIR)
cd poster && latexmk $(FLAGS_PDFLATEX) poster.tex
output-poster: output/poster/poster.pdf
output/poster/poster.pdf: poster
mkdir -p output/poster/
cp poster/$(OUTDIR)/poster.pdf output/poster/
clean-poster:
rm -f poster/$(OUTDIR)/*
###############################################################################
# NCCR poster
###############################################################################
poster-nccr: poster-nccr/$(OUTDIR)/poster.pdf
poster-nccr/$(OUTDIR)/poster.pdf: poster-nccr/poster.svg
mkdir -p poster-nccr/$(OUTDIR)
cd poster-nccr && inkscape poster.svg --export-pdf=$(OUTDIR)/poster.pdf
output-poster-nccr: output/poster-nccr/poster.pdf
output/poster-nccr/poster.pdf: poster-nccr
mkdir -p output/poster-nccr/
cp poster-nccr/$(OUTDIR)/poster.pdf output/poster-nccr/
clean-poster-nccr:
rm -f poster-nccr/$(OUTDIR)/*
###############################################################################
# Simple beamer presentation
###############################################################################
presentation-simple: presentation-simple/$(OUTDIR)/presentation.pdf
presentation-simple/$(OUTDIR)/presentation.pdf: presentation-simple/presentation.tex
mkdir -p presentation-simple/$(OUTDIR)
cd presentation-simple && latexmk $(FLAGS_LUALATEX) presentation.tex && cd $(OUTDIR) && ln -fs ../videos/ .
output-presentation-simple: output/presentation-simple/presentation.pdf
output/presentation-simple/presentation.pdf: presentation-simple
mkdir -p output/presentation-simple/
mkdir -p output/presentation-simple/videos/
cp presentation-simple/$(OUTDIR)/presentation.pdf output/presentation-simple/
cp presentation-simple/videos/* output/presentation-simple/videos/
clean-presentation-simple:
rm -f presentation-simple/$(OUTDIR)/*
###############################################################################
# HRI-themed beamer presentation
###############################################################################
presentation-hri: presentation-hri/$(OUTDIR)/presentation.pdf
presentation-hri/$(OUTDIR)/presentation.pdf: presentation-hri/presentation.tex
mkdir -p presentation-hri/$(OUTDIR)
cd presentation-hri && latexmk $(FLAGS_LUALATEX) presentation.tex && cd $(OUTDIR) && ln -fs ../videos/ .
output-presentation-hri: output/presentation-hri/presentation.pdf
output/presentation-hri/presentation.pdf: presentation-hri
mkdir -p output/presentation-hri/
mkdir -p output/presentation-hri/videos/
cp presentation-hri/$(OUTDIR)/presentation.pdf output/presentation-hri/
cp presentation-hri/videos/* output/presentation-hri/videos/
presentation-hri-notes: presentation-hri/$(OUTDIR)/notes.pdf
presentation-hri/$(OUTDIR)/notes.pdf: presentation-hri/presentation.tex
mkdir -p presentation-hri/$(OUTDIR)
cd presentation-hri && latexmk $(FLAGS_LUALATEX) -jobname="notes" presentation.tex
output-presentation-hri-notes: output/presentation-hri/notes.pdf
output/presentation-hri/notes.pdf: presentation-hri-notes
mkdir -p output/presentation-hri/
cp presentation-hri/$(OUTDIR)/notes.pdf output/presentation-hri/
clean-presentation-hri:
rm -f presentation-hri/$(OUTDIR)/*