source: doc/proposals/concurrency/Makefile@ 3628765

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since 3628765 was dcfc4b35, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Added internals section and updated v0.10 up to chapter 4

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