source: doc/proposals/concurrency/Makefile @ 07c1e595

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 07c1e595 was 07c1e595, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Ran ispell on the thesis

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