This repository has been archived by the owner on Apr 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
185 lines (153 loc) · 3.79 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
#
# vim: noet sw=4 ts=4
#
PIC = $(wildcard pics/*.pic)
PIC_TEX = $(PIC:%.pic=%.tex)
DOT = $(wildcard pics/*.dot)
DOT_EPS = $(DOT:%.dot=%.eps)
PDF = $(wildcard pics/*.pdf)
PDF_UCEPS = $(PDF:%.pdf=%.uceps)
PDF_EPS = $(PDF:%.pdf=%.eps)
LS = lecture_support/Makefile.lectures
TALK_PICS = $(wildcard pics/*.pic)
TALK_PSS = $(wildcard raw_ps/*.ps)
TEX_PROSE = \
thesis.tex \
abstract.tex \
intro.tex \
literature_review.tex \
backgnd.tex \
backgnd_mercury.tex \
backgnd_merpar.tex \
backgnd_deppar.tex \
backgnd_autopar.tex \
rts.tex \
rts_gc.tex \
rts_original_scheduling.tex \
rts_original_scheduling_performance.tex \
rts_work_stealing.tex \
rts_reorder.tex \
rts_work_stealing2.tex \
overlap.tex \
loop_control.tex \
tscope.tex \
conc.tex
TEXFILES = $(TEX_PROSE) macros.tex alg_macros.tex
TABLES_TEX = $(GEN_TABLES_TEX) \
tab_gc.tex \
tab_gc_amdahl.tex \
tab_gc_heapsize_gc4.tex \
tab_work_stealing_initial3.tex \
tab_work_stealing_revised3pt1.tex \
tab_work_stealing_revised3pt2.tex
GEN_TABLES_TEX = \
mem_table.tex \
times_table.tex
SPELL_FILES = $(TEX_PROSE:%.tex=%.spell)
STYLE_FILES = $(TEX_PROSE:%.tex=%.style)
CHECK_FILES = $(TEX_PROSE:%.tex=%.check)
# Results from Loop control.
#TIMING_RESULTS = results_carlton_n10_2011-11-26_01.pickle
#MEM_RESULTS = results_carlton_n10_2011-11-26_01.pickle
TIMING_RESULTS = results_cabsav_n20_2012-12-16_00.pickle
MEM_RESULTS = results_cabsav_n20_2012-12-16_00.pickle
BENCH_ALL= lc_bench_all
#DETEX=untex -m -uascii -e
DETEX=detex -l -n
.PHONY : all
all : thesis.pdf thesis.ps undefined.txt talk.pdf
.PHONY : wc
wc :
wc -w $(TEX_PROSE)
thesis.dvi thesis.log : $(TEXFILES) \
$(PIC_TEX) $(DOT_EPS) $(PDF_EPS) \
$(TABLES_TEX) \
bib.bib checking spelling
latex thesis
bibtex thesis
latex thesis
latex thesis
%.pdf : %.dvi
dvipdf $<
%.ps : %.dvi
dvips $<
%.tex: %.pic
gpic -t < $< > $@
%.eps: %.dot
dot -Teps < $< > $@
#%.pdf : %.eps
# ps2pdf $< $@
%.uceps: %.pdf
pdftops -eps $< $@
%.eps : %.ps
-rm $@
ps2eps $<
pics/icfp2000_eventlog.ps : pics/icfp2000_eventlog.uceps cropps.pl
./cropps.pl 0 160 978 806 $< > $@
pics/par_fib_eventlog.ps : pics/par_fib_eventlog.uceps cropps.pl
./cropps.pl 0 160 978 806 $< > $@
pics/mandelbrot_eventlog.ps : pics/mandelbrot_eventlog.uceps cropps.pl
./cropps.pl 0 160 978 806 $< > $@
times_table.tex: $(TIMING_RESULTS) $(BENCH_ALL) Makefile
./$(BENCH_ALL) -n0 -w -f times_table.tex -p $(TIMING_RESULTS)
mem_table.tex: $(MEM_RESULTS) $(BENCH_ALL) Makefile
./$(BENCH_ALL) -n0 -m -f mem_table.tex -p $(MEM_RESULTS)
undefined.txt: thesis.log
cat $< | grep undefined | sort -u > undefined.txt
checking : $(CHECK_FILES)
touch checking
%.check : %.tex check
if [ -e .use_mercury ]; then \
./check $< && touch $@; \
fi
check : check.m parse_tex.m tex.m util.m
if [ -e .use_mercury ]; then \
mmc -O2 --intermod-opt --make check; \
else \
touch check; \
fi
spelling : $(SPELL_FILES)
touch spelling
%.spell : %.tex
$(DETEX) < $< | spell | sort -u > $@
.PHONY : style
style : $(STYLE_FILES)
%.style : %.tex
echo "diction output" > $@
echo "==============" >> $@
$(DETEX) < $< | diction >> $@
echo "" >> $@
echo "style output" >> $@
echo "============" >> $@
$(DETEX) < $< | style -n >> $@
talk.pdf: talk.orig $(TALK_PICS) $(TALK_PSS)
make -f $(LS) teacher_beamer/talk.pdf
cp teacher_beamer/talk.pdf talk.pdf
.PHONY : clean
clean :
rm -rf $(PIC_TEX) \
$(PIC:%.pic=%.aux) \
$(GEN_TABLES_TEX) \
thesis.aux \
thesis.bbl \
thesis.blg \
thesis.dvi \
thesis.lof \
thesis.log \
thesis.lot \
thesis.out \
thesis.pdf \
thesis.ps \
thesis.toc \
thesis.loa \
talk.pdf \
.teacher_beamer \
teacher_beamer \
undefined.txt \
Mercury \
check \
check.err \
check.mh \
*.style \
*.spell \
*.check