source: doc/theses/thierry_delisle_PhD/thesis/Makefile @ 4c48be0

ADTast-experimentalpthread-emulation
Last change on this file since 4c48be0 was 2a859b5, checked in by Peter A. Buhr <pabuhr@…>, 2 years ago

add new figure base_ts2

  • Property mode set to 100644
File size: 4.9 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 = ${addsuffix .tex, \
31}
32
33PICTURES = ${addsuffix .pstex, \
34        base \
35        base_avg \
36        base_ts2 \
37        cache-share \
38        cache-noshare \
39        empty \
40        emptybit \
41        emptytls \
42        emptytree \
43        executionStates \
44        fairness \
45        idle \
46        idle1 \
47        idle2 \
48        idle_state \
49        io_uring \
50        pivot_ring \
51        MQMS \
52        MQMSG \
53        system \
54        cycle \
55        result.cycle.jax.ops \
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 \
71        SQMS \
72}
73
74PROGRAMS = ${addsuffix .tex, \
75}
76
77GRAPHS = ${addsuffix .tex, \
78}
79
80## Define the documents that need to be made.
81all: thesis.pdf
82thesis.pdf: ${TEXTS} ${FIGURES} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib
83
84DOCUMENT = thesis.pdf
85BASE = ${basename ${DOCUMENT}}
86
87# Directives #
88
89.NOTPARALLEL:                                           # cannot make in parallel
90
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}
107        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
108        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
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 $@}
117        # Make index from *.aux entries and input index at end of document
118        -makeindex ${basename $@}.idx
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
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
143build/fairness.svg : fig/fairness.py | ${Build}
144        python3 $< $@
145
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
150
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"
173
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.