source: doc/proposals/concurrency/Makefile @ b3ffb61

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since b3ffb61 was b3ffb61, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

Added missing citations

  • Property mode set to 100644
File size: 3.0 KB
Line 
1## Define the appropriate configuration variables.
2
3TeXLIB = .:./style:./text:./annex:./build:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies:
4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=build -interaction=nonstopmode
5BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex -terse
6
7## Define the text source files.
8
9SOURCES = ${addsuffix .tex, \
10thesis \
11style/style \
12style/cfa-format \
13annex/glossary \
14text/intro \
15text/basics \
16text/cforall \
17text/concurrency \
18text/internals \
19text/parallelism \
20text/results \
21text/together \
22text/future \
23}
24
25FIGURES = ${addprefix build/, ${addsuffix .tex, \
26        monitor \
27        ext_monitor \
28        int_monitor \
29        dependency \
30}}
31
32PICTURES = ${addprefix build/, ${addsuffix .pstex, \
33        system \
34        monitor_structs \
35}}
36
37PROGRAMS = ${addsuffix .tex, \
38}
39
40GRAPHS = ${addsuffix .tex, \
41}
42
43## Define the documents that need to be made.
44
45DOCUMENT = thesis.pdf
46
47# Directives #
48
49all : ${DOCUMENT}
50
51clean :
52        @rm -fv ${DOCUMENT} \
53        build/*.acn     \
54        build/*.acr     \
55        build/*.alg     \
56        build/*.aux     \
57        build/*.bbl     \
58        build/*.blg     \
59        build/*.brf     \
60        build/*.cf      \
61        build/*.dvi     \
62        build/*.glg     \
63        build/*.glo     \
64        build/*.gls     \
65        build/*.ist     \
66        build/*.idx     \
67        build/*.ilg     \
68        build/*.ind     \
69        build/*.log     \
70        build/*.out     \
71        build/*.ps      \
72        build/*.pstex   \
73        build/*.pstex_t \
74        build/*.tex     \
75        build/*.toc     \
76
77
78# File Dependencies #
79
80${DOCUMENT} : build/${basename ${DOCUMENT}}.ps
81        ps2pdf $<
82
83build/${basename ${DOCUMENT}}.ps : build/${basename ${DOCUMENT}}.dvi
84        dvips $< -o $@
85
86build/${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle annex/local.bib
87
88        @ if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi                           # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
89        @ echo "Citation lookup"                                                                                        # Must have *.aux file containing citations for bibtex
90        @ if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename ${notdir $@}}.tex ; fi
91        @ echo "Citation Pass 1"
92        @ -${BibTeX} ${basename $@}                                                                                     # Some citations reference others so run steps again to resolve these citations
93        @ echo "Citation Pass 2"
94        @ ${LaTeX} ${basename ${notdir $@}}.tex
95        @ -${BibTeX} ${basename $@}
96        @ echo "Glossary"
97        @ makeglossaries -q -s ${basename $@}.ist ${basename $@}                                                # Make index from *.aux entries and input index at end of document
98        @ echo ".dvi generation"
99        @ -build/bump_ver.sh
100        @ ${LaTeX} ${basename ${notdir $@}}.tex                                                                 # Run again to get index title into table of contents
101
102
103predefined :
104        sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
105
106## Define the default recipes.
107
108build/%.tex : figures/%.fig
109        fig2dev -L eepic $< > $@
110
111build/%.ps : figures/%.fig
112        fig2dev -L ps $< > $@
113
114build/%.pstex : figures/%.fig
115        fig2dev -L pstex $< > $@
116        fig2dev -L pstex_t -p $@ $< > $@_t
117
118
119# Local Variables: #
120# compile-command: "make" #
121# End: #
Note: See TracBrowser for help on using the repository browser.