source: doc/proposals/concurrency/Makefile @ 64b272a

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 64b272a was 64b272a, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

Prereview commit

  • 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}}
35
36PROGRAMS = ${addsuffix .tex, \
37}
38
39GRAPHS = ${addsuffix .tex, \
40}
41
42## Define the documents that need to be made.
43
44DOCUMENT = thesis.pdf
45
46# Directives #
47
48all : ${DOCUMENT}
49
50clean :
51        @rm -fv ${DOCUMENT} \
52        build/*.acn     \
53        build/*.acr     \
54        build/*.alg     \
55        build/*.aux     \
56        build/*.bbl     \
57        build/*.blg     \
58        build/*.brf     \
59        build/*.cf      \
60        build/*.dvi     \
61        build/*.glg     \
62        build/*.glo     \
63        build/*.gls     \
64        build/*.ist     \
65        build/*.idx     \
66        build/*.ilg     \
67        build/*.ind     \
68        build/*.log     \
69        build/*.out     \
70        build/*.ps      \
71        build/*.pstex   \
72        build/*.pstex_t \
73        build/*.tex     \
74        build/*.toc     \
75
76
77# File Dependencies #
78
79${DOCUMENT} : build/${basename ${DOCUMENT}}.ps
80        ps2pdf $<
81
82build/${basename ${DOCUMENT}}.ps : build/${basename ${DOCUMENT}}.dvi
83        dvips $< -o $@
84
85build/${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle
86
87        @ if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi                           # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
88        @ echo "Citation lookup"                                                                                        # Must have *.aux file containing citations for bibtex
89        @ if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename ${notdir $@}}.tex ; fi
90        @ echo "Citation Pass 1"
91        @ -${BibTeX} ${basename $@}                                                                                     # Some citations reference others so run steps again to resolve these citations
92        @ echo "Citation Pass 2"
93        @ ${LaTeX} ${basename ${notdir $@}}.tex
94        @ -${BibTeX} ${basename $@}
95        @ echo "Glossary"
96        makeglossaries -q -s ${basename $@}.ist ${basename $@}                                          # Make index from *.aux entries and input index at end of document
97        @ echo ".dvi generation"
98        @ -build/bump_ver.sh
99        @ ${LaTeX} ${basename ${notdir $@}}.tex                                                                 # Run again to get index title into table of contents
100
101
102predefined :
103        sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
104
105## Define the default recipes.
106
107build/%.tex : figures/%.fig
108        fig2dev -L eepic $< > $@
109
110build/%.ps : figures/%.fig
111        fig2dev -L ps $< > $@
112
113build/%.pstex : figures/%.fig
114        fig2dev -L pstex $< > $@
115        fig2dev -L pstex_t -p $@ $< > $@_t
116
117
118# Local Variables: #
119# compile-command: "make" #
120# End: #
Note: See TracBrowser for help on using the repository browser.