source: doc/theses/thierry_delisle_PhD/thesis/Makefile @ 490fb92e

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 490fb92e was d835116, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

More formatting changes

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[86c1f1c3]1## Define the configuration variables.
2
3Build = build
4Figures = img
5Macros = ../../../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:../../../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
9
10MAKEFLAGS = --no-print-directory --silent #
11VPATH = ${Build} ${Figures}
12
13## Define the text source files.
14TEXTS = ${addprefix text/, ${addsuffix .tex, \
15        front \
16        intro \
17        runtime \
18        core \
19        practice \
20        io \
21}}
22
23FIGURES = ${addsuffix .tex, \
24}
25
26PICTURES = ${addsuffix .pstex, \
27        base \
28        empty \
29}
30
31PROGRAMS = ${addsuffix .tex, \
32}
33
34GRAPHS = ${addsuffix .tex, \
35}
36
37## Define the documents that need to be made.
38all: thesis.pdf
[d835116]39thesis.pdf: ${TEXTS} ${FIGURES} ${PICTURES} glossary.tex
[86c1f1c3]40
41DOCUMENT = thesis.pdf
42BASE = ${basename ${DOCUMENT}}
43
44# Directives #
45
46.PHONY : all clean                                      # not file names
47
48all : ${DOCUMENT}
49
50clean :
51        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
52
53# File Dependencies #
54
55%.pdf : build/%.ps | ${Build}
56        ps2pdf $<
57
58build/%.ps : build/%.dvi | ${Build}
59        dvips $< -o $@
60
61build/%.dvi : %.tex Makefile | ${Build}
62        # Must have *.aux file containing citations for bibtex
63        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi
64        -${BibTeX} ${basename $@}
65        # Some citations reference others so run again to resolve these citations
66        ${LaTeX} $<
67        -${BibTeX} ${basename $@}
68        # Make index from *.aux entries and input index at end of document
69        -makeglossaries -q -s ${basename $@}.ist ${basename $@}
70        # Run again to finish citations
71        ${LaTeX} $<
72
73## Define the default recipes.
74
75${Build}:
76        mkdir -p ${Build}
77
78%.tex : fig/%.fig | ${Build}
79        fig2dev -L eepic $< > ${Build}/$@
80
81%.ps : fig/%.fig | ${Build}
82        fig2dev -L ps $< > ${Build}/$@
83
84%.pstex : fig/%.fig | ${Build}
85        fig2dev -L pstex $< > ${Build}/$@
86        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
87
88## pstex with inverted colors
89%.dark.pstex : fig/%.fig Makefile | ${Build}
90        fig2dev -L pstex $< > ${Build}/$@
91        sed -i 's/\/col-1 {0 setgray} bind def/\/col-1 {1 setgray} bind def/g' ${Build}/$@
92        sed -i 's/\/col0 {0.000 0.000 0.000 srgb} bind def/\/col0 {1.000 1.000 1.000 srgb} bind def/g' ${Build}/$@
93        sed -i 's/\/col7 {1.000 1.000 1.000 srgb} bind def/\/col7 {0.000 0.000 0.000 srgb} bind def/g' ${Build}/$@
94        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
95
96# Local Variables: #
97# compile-command: "make" #
98# End: #
Note: See TracBrowser for help on using the repository browser.