source: doc/theses/colby_parsons_MMAth/Makefile @ daf4c89

Last change on this file since daf4c89 was 930a800, checked in by caparsons <caparson@…>, 17 months ago

added conclusion to makefile, removed duplicate bib entry and added conclusion to thesis.tex

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