source: doc/theses/thierry_delisle/Makefile @ 604e76d

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 604e76d was 728df66, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

more documentation name changes

  • Property mode set to 100644
File size: 3.8 KB
RevLine 
[694ee7d]1## Define the appropriate configuration variables.
2
[cae28da]3TeXLIB = .:./style:./text:./annex:./build:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies:/usr/local/bibliographies:
[27dde72]4LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=build -interaction=nonstopmode
5BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex -terse
[694ee7d]6
7## Define the text source files.
8
9SOURCES = ${addsuffix .tex, \
[db0fa7c]10thesis \
[27dde72]11style/style \
12style/cfa-format \
13annex/glossary \
[cf966b5]14text/frontpgs \
[27dde72]15text/intro \
16text/basics \
[64b272a]17text/cforall \
[27dde72]18text/concurrency \
[dcfc4b3]19text/internals \
[27dde72]20text/parallelism \
[64b272a]21text/results \
[d67cdb7]22text/together \
23text/future \
[694ee7d]24}
25
[27dde72]26FIGURES = ${addprefix build/, ${addsuffix .tex, \
[b512454]27        monitor \
28        ext_monitor \
[21a1efb]29        int_monitor \
[3364962]30        dependency \
[27dde72]31}}
[694ee7d]32
[64b272a]33PICTURES = ${addprefix build/, ${addsuffix .pstex, \
34        system \
[20ffcf3]35        monitor_structs \
[64b272a]36}}
[694ee7d]37
38PROGRAMS = ${addsuffix .tex, \
39}
40
41GRAPHS = ${addsuffix .tex, \
42}
43
44## Define the documents that need to be made.
45
[db0fa7c]46DOCUMENT = thesis.pdf
[694ee7d]47
48# Directives #
49
50all : ${DOCUMENT}
51
52clean :
[27dde72]53        @rm -fv ${DOCUMENT} \
54        build/*.acn     \
55        build/*.acr     \
56        build/*.alg     \
57        build/*.aux     \
58        build/*.bbl     \
59        build/*.blg     \
60        build/*.brf     \
61        build/*.cf      \
62        build/*.dvi     \
63        build/*.glg     \
64        build/*.glo     \
65        build/*.gls     \
66        build/*.ist     \
67        build/*.idx     \
68        build/*.ilg     \
69        build/*.ind     \
70        build/*.log     \
71        build/*.out     \
72        build/*.ps      \
[64b272a]73        build/*.pstex   \
[27dde72]74        build/*.pstex_t \
75        build/*.tex     \
76        build/*.toc     \
[cae28da]77        build/*.lof     \
78        build/*.lol     \
79        build/*.lot     \
[f739788]80        figures/*.tex   \
81        *.png           \
[ff98952]82
[694ee7d]83
84# File Dependencies #
85
[db0fa7c]86${DOCUMENT} : build/${basename ${DOCUMENT}}.ps
[694ee7d]87        ps2pdf $<
88
[27dde72]89build/${basename ${DOCUMENT}}.ps : build/${basename ${DOCUMENT}}.dvi
[694ee7d]90        dvips $< -o $@
91
[b3ffb61]92build/${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle annex/local.bib
[27dde72]93
94        @ if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi                           # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
95        @ echo "Citation lookup"                                                                                        # Must have *.aux file containing citations for bibtex
96        @ if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename ${notdir $@}}.tex ; fi
97        @ echo "Citation Pass 1"
98        @ -${BibTeX} ${basename $@}                                                                                     # Some citations reference others so run steps again to resolve these citations
[ff98952]99        @ echo "Citation Pass 2"
[27dde72]100        @ ${LaTeX} ${basename ${notdir $@}}.tex
101        @ -${BibTeX} ${basename $@}
[ff98952]102        @ echo "Glossary"
[b3ffb61]103        @ makeglossaries -q -s ${basename $@}.ist ${basename $@}                                                # Make index from *.aux entries and input index at end of document
[ff98952]104        @ echo ".dvi generation"
[27dde72]105        @ -build/bump_ver.sh
106        @ ${LaTeX} ${basename ${notdir $@}}.tex                                                                 # Run again to get index title into table of contents
[c69adb7]107
[694ee7d]108
109predefined :
110        sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
111
112## Define the default recipes.
113
[27dde72]114build/%.tex : figures/%.fig
[694ee7d]115        fig2dev -L eepic $< > $@
116
[27dde72]117build/%.ps : figures/%.fig
[694ee7d]118        fig2dev -L ps $< > $@
119
[27dde72]120build/%.pstex : figures/%.fig
[694ee7d]121        fig2dev -L pstex $< > $@
122        fig2dev -L pstex_t -p $@ $< > $@_t
123
[f739788]124figures/%.tex: build/%.pstex
125        echo -n         "\documentclass[preview]{standalone}\n"         \
126                        "\usepackage[T1]{fontenc}\n"                    \
127                        "\usepackage[usenames]{color}\n"                \
128                        "\usepackage{graphicx}\n"                       \
129                        "\usepackage{listings}\n"                       \
130                        "\usepackage{xspace}\n"                         \
131                        "\input{style}\n"                               \
132                        "\\\\begin{document}\n"                         \
133                        "{\\\\resizebox{3\\\\textwidth}{!}{\input{${basename ${notdir $@}}.pstex_t}}}\n" \
134                        "\end{document}" > $@
135
136%.png : build/%.pstex figures/%.tex
137        echo ${basename $@}
138        ${LaTeX} figures/${basename $@}.tex
139        dvips build/${basename $@}.dvi -o build/${basename $@}.ps
140        ps2pdf build/${basename $@}.ps
141        convert -negate ${basename $@}.pdf $@
142
143
[9b4343e]144
[694ee7d]145# Local Variables: #
146# compile-command: "make" #
147# End: #
Note: See TracBrowser for help on using the repository browser.