source: doc/proposals/concurrency/Makefile @ 21a1efb

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

Sent a draft to peter

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