source: doc/theses/thierry_delisle_PhD/thesis/Makefile@ 05b400a

ADT ast-experimental pthread-emulation qualifiedEnum stuck-waitfor-destruct
Last change on this file since 05b400a was 2a859b5, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

add new figure base_ts2

  • Property mode set to 100644
File size: 4.9 KB
RevLine 
[86c1f1c3]1## Define the configuration variables.
2
3Build = build
4Figures = img
[512d3dc1]5
6LaTMac = ../../../LaTeXmacros
7BibRep = ../../../bibliography
8
9Macros = ${LaTMac}
10TeXLIB = .:${Macros}:${Build}:${BibRep}:
[86c1f1c3]11LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
12BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
13
[b20465a]14MAKEFLAGS = --no-print-directory # --silent
[86c1f1c3]15VPATH = ${Build} ${Figures}
16
17## Define the text source files.
18TEXTS = ${addprefix text/, ${addsuffix .tex, \
19 front \
20 intro \
[b9537e6]21 existing \
[86c1f1c3]22 runtime \
23 core \
24 practice \
25 io \
[36a05d7]26 eval_micro \
27 eval_macro \
[86c1f1c3]28}}
29
30FIGURES = ${addsuffix .tex, \
31}
32
33PICTURES = ${addsuffix .pstex, \
34 base \
[6db62fa]35 base_avg \
[2a859b5]36 base_ts2 \
[13888c0e]37 cache-share \
38 cache-noshare \
[86c1f1c3]39 empty \
[c04a19e]40 emptybit \
41 emptytls \
42 emptytree \
[1f201238]43 executionStates \
[c04a19e]44 fairness \
[622a358]45 idle \
46 idle1 \
47 idle2 \
48 idle_state \
[c292244]49 io_uring \
[5ce9bea]50 pivot_ring \
[1f201238]51 MQMS \
52 MQMSG \
[b9537e6]53 system \
[36a05d7]54 cycle \
[6db62fa]55 result.cycle.jax.ops \
[622a358]56 result.yield.jax.ops \
57 result.churn.jax.ops \
58 result.cycle.jax.ns \
59 result.yield.jax.ns \
60 result.churn.jax.ns \
61 result.cycle.low.jax.ops \
62 result.yield.low.jax.ops \
63 result.churn.low.jax.ops \
64 result.cycle.low.jax.ns \
65 result.yield.low.jax.ns \
66 result.churn.low.jax.ns \
67 result.memcd.updt.qps \
68 result.memcd.updt.lat \
69 result.memcd.rate.qps \
70 result.memcd.rate.99th \
[1f201238]71 SQMS \
[86c1f1c3]72}
73
74PROGRAMS = ${addsuffix .tex, \
75}
76
77GRAPHS = ${addsuffix .tex, \
78}
79
80## Define the documents that need to be made.
81all: thesis.pdf
[512d3dc1]82thesis.pdf: ${TEXTS} ${FIGURES} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib
[86c1f1c3]83
84DOCUMENT = thesis.pdf
85BASE = ${basename ${DOCUMENT}}
86
87# Directives #
88
[b20465a]89.NOTPARALLEL: # cannot make in parallel
90
[86c1f1c3]91.PHONY : all clean # not file names
92
93all : ${DOCUMENT}
94
95clean :
96 @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
97
98# File Dependencies #
99
100%.pdf : build/%.ps | ${Build}
101 ps2pdf $<
102
103build/%.ps : build/%.dvi | ${Build}
104 dvips $< -o $@
105
106build/%.dvi : %.tex Makefile | ${Build}
[bace538]107 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
108 if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
[86c1f1c3]109 # Must have *.aux file containing citations for bibtex
110 if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi
111 -${BibTeX} ${basename $@}
112 # Some citations reference others so run again to resolve these citations
113 ${LaTeX} $<
114 -${BibTeX} ${basename $@}
115 # Make index from *.aux entries and input index at end of document
116 -makeglossaries -q -s ${basename $@}.ist ${basename $@}
[bace538]117 # Make index from *.aux entries and input index at end of document
118 -makeindex ${basename $@}.idx
[86c1f1c3]119 # Run again to finish citations
120 ${LaTeX} $<
121
122## Define the default recipes.
123
124${Build}:
125 mkdir -p ${Build}
126
127%.tex : fig/%.fig | ${Build}
128 fig2dev -L eepic $< > ${Build}/$@
129
130%.ps : fig/%.fig | ${Build}
131 fig2dev -L ps $< > ${Build}/$@
132
133%.pstex : fig/%.fig | ${Build}
134 fig2dev -L pstex $< > ${Build}/$@
135 fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
136
[c04a19e]137%.pstex : build/%.svg | ${Build}
138 inkscape -z -D --file=$< --export-eps=${Build}/$@ --export-latex
139 mv ${Build}/$@_tex ${Build}/$@_t
140 echo "sed -i 's/$@/${Build}/$@/g' ${Build}/$@_t"
141 sed -i 's/$@/${Build}\/$@/g' ${Build}/$@_t
142
[b20465a]143build/fairness.svg : fig/fairness.py | ${Build}
144 python3 $< $@
[5ce9bea]145
[622a358]146cycle_jax_ops_FLAGS = --MaxY=120000000
147cycle_low_jax_ops_FLAGS = --MaxY=120000000
148cycle_jax_ns_FLAGS = --MaxY=2000
149cycle_low_jax_ns_FLAGS = --MaxY=2000
[6db62fa]150
[622a358]151yield_jax_ops_FLAGS = --MaxY=150000000
152yield_low_jax_ops_FLAGS = --MaxY=150000000
153yield_jax_ns_FLAGS = --MaxY=1500
154yield_low_jax_ns_FLAGS = --MaxY=1500
155
156build/result.%.ns.svg : data/% Makefile | ${Build}
157 ../../../../benchmark/plot.py -f $< -o $@ -y "ns per ops/procs" $($(subst .,_,$*)_ns_FLAGS)
158
159build/result.%.ops.svg : data/% Makefile | ${Build}
160 ../../../../benchmark/plot.py -f $< -o $@ -y "Ops per second" $($(subst .,_,$*)_ops_FLAGS)
161
162build/result.memcd.updt.qps.svg : data/memcd.updt Makefile | ${Build}
163 ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Update Ratio"
164
165build/result.memcd.updt.lat.svg : data/memcd.updt Makefile | ${Build}
166 ../../../../benchmark/plot.py -f $< -o $@ -y "Average Read Latency" -x "Update Ratio"
167
168build/result.memcd.rate.qps.svg : data/memcd.rate Makefile | ${Build}
169 ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS"
170
171build/result.memcd.rate.99th.svg : data/memcd.rate Makefile | ${Build}
172 ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS"
[6db62fa]173
[86c1f1c3]174## pstex with inverted colors
175%.dark.pstex : fig/%.fig Makefile | ${Build}
176 fig2dev -L pstex $< > ${Build}/$@
177 sed -i 's/\/col-1 {0 setgray} bind def/\/col-1 {1 setgray} bind def/g' ${Build}/$@
178 sed -i 's/\/col0 {0.000 0.000 0.000 srgb} bind def/\/col0 {1.000 1.000 1.000 srgb} bind def/g' ${Build}/$@
179 sed -i 's/\/col7 {1.000 1.000 1.000 srgb} bind def/\/col7 {0.000 0.000 0.000 srgb} bind def/g' ${Build}/$@
180 fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
181
182# Local Variables: #
183# compile-command: "make" #
184# End: #
Note: See TracBrowser for help on using the repository browser.