source: doc/proposals/concurrency/Makefile @ fb31cb8

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

Updated concurrency draft and added new section for implementation.

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