1 | ## Define the configuration variables.
|
---|
2 |
|
---|
3 | Build = build
|
---|
4 | Figures = figures
|
---|
5 | Macros = ../../LaTeXmacros
|
---|
6 | TeXLIB = .:${Macros}:${Build}:../../bibliography:
|
---|
7 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
|
---|
8 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
|
---|
9 |
|
---|
10 | MAKEFLAGS = --no-print-directory --silent #
|
---|
11 | VPATH = ${Build} ${Figures} evaluation
|
---|
12 |
|
---|
13 | ## Define the text source files.
|
---|
14 |
|
---|
15 | SOURCES = ${addsuffix .tex, \
|
---|
16 | generic_types \
|
---|
17 | }
|
---|
18 |
|
---|
19 | FIGURES = ${addsuffix .tex, \
|
---|
20 | }
|
---|
21 |
|
---|
22 | PICTURES = ${addsuffix .pstex, \
|
---|
23 | }
|
---|
24 |
|
---|
25 | PROGRAMS = ${addsuffix .tex, \
|
---|
26 | }
|
---|
27 |
|
---|
28 | GRAPHS = ${addsuffix .tex, \
|
---|
29 | timing \
|
---|
30 | }
|
---|
31 |
|
---|
32 | ## Define the documents that need to be made.
|
---|
33 |
|
---|
34 | DOCUMENT = generic_types.pdf
|
---|
35 | BASE = ${basename ${DOCUMENT}}
|
---|
36 |
|
---|
37 | # Directives #
|
---|
38 |
|
---|
39 | .PHONY : all clean # not file names
|
---|
40 |
|
---|
41 | all : ${DOCUMENT}
|
---|
42 |
|
---|
43 | clean :
|
---|
44 | @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
|
---|
45 |
|
---|
46 | # File Dependencies #
|
---|
47 |
|
---|
48 | ${DOCUMENT} : ${BASE}.ps
|
---|
49 | ps2pdf $<
|
---|
50 |
|
---|
51 | ${BASE}.ps : ${BASE}.dvi
|
---|
52 | dvips ${Build}/$< -o $@
|
---|
53 |
|
---|
54 | ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
|
---|
55 | ../../bibliography/pl.bib | ${Build}
|
---|
56 | # Must have *.aux file containing citations for bibtex
|
---|
57 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
|
---|
58 | -${BibTeX} ${Build}/${basename $@}
|
---|
59 | # Some citations reference others so run again to resolve these citations
|
---|
60 | ${LaTeX} ${basename $@}.tex
|
---|
61 | -${BibTeX} ${Build}/${basename $@}
|
---|
62 | # Run again to finish citations
|
---|
63 | ${LaTeX} ${basename $@}.tex
|
---|
64 |
|
---|
65 | ## Define the default recipes.
|
---|
66 |
|
---|
67 | ${Build} :
|
---|
68 | mkdir -p ${Build}
|
---|
69 |
|
---|
70 | ${GRAPHS} : timing.gp timing.dat
|
---|
71 | gnuplot -e Build="'${Build}/'" evaluation/timing.gp
|
---|
72 |
|
---|
73 | %.tex : %.fig | ${Build}
|
---|
74 | fig2dev -L eepic $< > ${Build}/$@
|
---|
75 |
|
---|
76 | %.ps : %.fig | ${Build}
|
---|
77 | fig2dev -L ps $< > ${Build}/$@
|
---|
78 |
|
---|
79 | %.pstex : %.fig | ${Build}
|
---|
80 | fig2dev -L pstex $< > ${Build}/$@
|
---|
81 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
|
---|
82 |
|
---|
83 | # Local Variables: #
|
---|
84 | # compile-command: "make" #
|
---|
85 | # End: #
|
---|