source: doc/theses/thierry_delisle_PhD/thesis/Makefile @ b9537e6

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

A whole bunch of thesis work and existing work

  • Property mode set to 100644
File size: 2.4 KB
Line 
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        existing \
18        runtime \
19        core \
20        practice \
21        io \
22}}
23
24FIGURES = ${addsuffix .tex, \
25}
26
27PICTURES = ${addsuffix .pstex, \
28        base \
29        empty \
30        system \
31}
32
33PROGRAMS = ${addsuffix .tex, \
34}
35
36GRAPHS = ${addsuffix .tex, \
37}
38
39## Define the documents that need to be made.
40all: thesis.pdf
41thesis.pdf: ${TEXTS} ${FIGURES} ${PICTURES} glossary.tex local.bib
42
43DOCUMENT = thesis.pdf
44BASE = ${basename ${DOCUMENT}}
45
46# Directives #
47
48.PHONY : all clean                                      # not file names
49
50all : ${DOCUMENT}
51
52clean :
53        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
54
55# File Dependencies #
56
57%.pdf : build/%.ps | ${Build}
58        ps2pdf $<
59
60build/%.ps : build/%.dvi | ${Build}
61        dvips $< -o $@
62
63build/%.dvi : %.tex Makefile | ${Build}
64        # Must have *.aux file containing citations for bibtex
65        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi
66        -${BibTeX} ${basename $@}
67        # Some citations reference others so run again to resolve these citations
68        ${LaTeX} $<
69        -${BibTeX} ${basename $@}
70        # Make index from *.aux entries and input index at end of document
71        -makeglossaries -q -s ${basename $@}.ist ${basename $@}
72        # Run again to finish citations
73        ${LaTeX} $<
74
75## Define the default recipes.
76
77${Build}:
78        mkdir -p ${Build}
79
80%.tex : fig/%.fig | ${Build}
81        fig2dev -L eepic $< > ${Build}/$@
82
83%.ps : fig/%.fig | ${Build}
84        fig2dev -L ps $< > ${Build}/$@
85
86%.pstex : fig/%.fig | ${Build}
87        fig2dev -L pstex $< > ${Build}/$@
88        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
89
90## pstex with inverted colors
91%.dark.pstex : fig/%.fig Makefile | ${Build}
92        fig2dev -L pstex $< > ${Build}/$@
93        sed -i 's/\/col-1 {0 setgray} bind def/\/col-1 {1 setgray} bind def/g' ${Build}/$@
94        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}/$@
95        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}/$@
96        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
97
98# Local Variables: #
99# compile-command: "make" #
100# End: #
Note: See TracBrowser for help on using the repository browser.