source: doc/theses/thierry_delisle_PhD/thesis/Makefile @ 8f09242

ADTast-experimentalpthread-emulation
Last change on this file since 8f09242 was 8f09242, checked in by Thierry Delisle <tdelisle@…>, 19 months ago

Updated makefile to use new data.

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