source: doc/proposals/concurrency/Makefile @ f3c1737

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

More work on the basics section

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