source: doc/theses/thierry_delisle_PhD/comp_II/Makefile @ d2b5d2d

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since d2b5d2d was 2ad74d8, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago

proofread Thierry's PhD comp II

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