source: doc/theses/colby_parsons_MMAth/Makefile @ 5e81a9c

Last change on this file since 5e81a9c was f519bd8, checked in by caparsons <caparson@…>, 16 months ago

reworked actor steal section

  • Property mode set to 100644
File size: 4.6 KB
Line 
1## Define the configuration variables.
2
3Build = build
4Figures = figures
5Macros = ../../LaTeXmacros
6TeXLIB = .:style:text:${Macros}:${Build}:../../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
9
10MAKEFLAGS = --no-print-directory --silent #
11VPATH = ${Build} ${Figures}
12
13## Define the text source files.
14
15SOURCES = ${addsuffix .tex, \
16        text/intro \
17        text/CFA_intro \
18        text/actors \
19        text/frontpgs \
20        text/CFA_concurrency \
21        thesis \
22        text/mutex_stmt \
23        text/channels \
24        text/waituntil \
25}
26
27FIGURES = ${addsuffix .pgf, \
28        figures/pykeExecutor \
29        figures/pykeCFAExecutor \
30        figures/nasusExecutor \
31        figures/nasusCFAExecutor \
32        figures/pykeMatrix \
33        figures/pykeCFAMatrix \
34        figures/nasusMatrix \
35        figures/nasusCFAMatrix \
36        figures/pykeRepeat \
37        figures/pykeCFARepeat \
38        figures/nasusRepeat \
39        figures/nasusCFARepeat \
40        figures/pykeCFABalance-One \
41        figures/nasusCFABalance-One\
42        figures/pykeCFABalance-Multi \
43        figures/nasusCFABalance-Multi \
44        figures/pyke_Aggregate_Lock_2 \
45        figures/pyke_Aggregate_Lock_4 \
46        figures/pyke_Aggregate_Lock_8 \
47        figures/nasus_Aggregate_Lock_2 \
48        figures/nasus_Aggregate_Lock_4 \
49        figures/nasus_Aggregate_Lock_8 \
50        figures/nasus_Channel_Contention \
51        figures/pyke_Channel_Contention \
52        figures/pyke_Future \
53        figures/nasus_Future \
54        figures/pyke_Contend_2 \
55        figures/pyke_Contend_4 \
56        figures/pyke_Contend_8 \
57        figures/pyke_Spin_2 \
58        figures/pyke_Spin_4 \
59        figures/pyke_Spin_8 \
60        figures/nasus_Contend_2 \
61        figures/nasus_Contend_4 \
62        figures/nasus_Contend_8 \
63        figures/nasus_Spin_2 \
64        figures/nasus_Spin_4 \
65        figures/nasus_Spin_8 \
66}
67
68DATA =  data/pykeSendStatic \
69        data/pykeSendDynamic \
70        data/pykeExecutorMem \
71        data/nasusSendStatic \
72        data/nasusSendDynamic \
73        data/pykeExecutorMem \
74        data/nasus_Order \
75        data/pyke_Order \
76
77PICTURES = ${addsuffix .tikz, \
78        diagrams/standard_actor \
79        diagrams/inverted_actor \
80        diagrams/gulp \
81        diagrams/chain_swap \
82        diagrams/M_to_one_swap \
83        diagrams/acyclic_swap \
84        diagrams/cyclic_swap \
85        diagrams/steal \
86}
87
88PROGRAMS = ${addsuffix .tex, \
89}
90
91GRAPHS = ${addsuffix .tex, \
92}
93
94## Define the documents that need to be made.
95
96DOCUMENT = thesis.pdf
97BASE = ${basename ${DOCUMENT}}
98
99# Directives #
100
101.PHONY : all clean                                      # not file names
102
103all : ${DOCUMENT}
104
105clean :
106        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
107
108# File Dependencies #
109
110${DOCUMENT} : ${BASE}.ps
111        ps2pdf $<
112
113${BASE}.ps : ${BASE}.dvi
114        dvips ${Build}/$< -o $@
115
116${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${DATA} \
117                glossary.tex style/style.tex ${Macros}/common.tex ${Macros}/lstlang.sty ${Macros}/indexstyle local.bib ../../bibliography/pl.bib | ${Build}
118        # Must have *.aux file containing citations for bibtex
119        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
120        ${BibTeX} ${Build}/${basename $@}
121        # Some citations reference others so run again to resolve these citations
122#       ${LaTeX} ${basename $@}.tex
123#       -${BibTeX} ${Build}/${basename $@}
124        # Make index from *.aux entries and input index at end of document
125        makeglossaries -q -s ${Build}/${basename $@}.ist ${Build}/${basename $@}
126        # Run again to finish citations
127        ${LaTeX} ${basename $@}.tex
128
129## Define the default recipes.
130
131${Build} :
132        mkdir -p ${Build}
133
134# The following rules are currently unused but could be used later
135# if we want to swap figures to be .pngs
136# %.tex : %.fig ${Build}
137#       fig2dev -L eepic $< > ${Build}/$@
138
139# %.ps : %.fig | ${Build}
140#       fig2dev -L ps $< > ${Build}/$@
141
142# %.pstex : %.fig | ${Build}
143#       fig2dev -L pstex $< > ${Build}/$@
144#       fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
145
146# #-----------------------------------------------------------------------------------
147# # Tools to generate png files
148# # to create a png we create a pdf and convert it to png
149# %.png : build/%.pstex figures/%.tex ${Build}
150#       echo ${basename $@}
151#       ${LaTeX} figures/${basename $@}.tex
152#       dvips build/${basename $@}.dvi -o build/${basename $@}.ps
153#       ps2pdf build/${basename $@}.ps
154#       convert -negate ${basename $@}.pdf $@
155
156# creating a pdf of a figure requires generating some latex that just includes the figure
157# figures/%.tex: build/%.pstex ${Build}
158#       echo -n         "\documentclass[preview]{standalone}\n"         \
159#                       "\usepackage[T1]{fontenc}\n"                    \
160#                       "\usepackage[usenames]{color}\n"                \
161#                       "\usepackage{graphicx}\n"                       \
162#                       "\usepackage{listings}\n"                       \
163#                       "\usepackage{xspace}\n"                         \
164#                       "\input{style}\n"                               \
165#                       "\\\\begin{document}\n"                         \
166#                       "{\\\\resizebox{3\\\\textwidth}{!}{\input{${basename ${notdir $@}}.pstex_t}}}\n" \
167#                       "\end{document}" > $@
168
169data/%: ;
170%.tikz: ;
171%.pgf: ;
172
173# Local Variables: #
174# compile-command: "make" #
175# End: #
Note: See TracBrowser for help on using the repository browser.