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 = ${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 | |
---|
36 | # Directives # |
---|
37 | |
---|
38 | all : ${DOCUMENT} |
---|
39 | |
---|
40 | clean : |
---|
41 | @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build} |
---|
42 | |
---|
43 | # File Dependencies # |
---|
44 | |
---|
45 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps |
---|
46 | ps2pdf $< |
---|
47 | |
---|
48 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi |
---|
49 | dvips ${Build}/$< -o $@ |
---|
50 | |
---|
51 | ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../../bibliography/pl.bib |
---|
52 | # Must have *.aux file containing citations for bibtex |
---|
53 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi |
---|
54 | -${BibTeX} ${Build}/${basename $@} |
---|
55 | # Some citations reference others so run again to resolve these citations |
---|
56 | ${LaTeX} ${basename $@}.tex |
---|
57 | -${BibTeX} ${Build}/${basename $@} |
---|
58 | # Run again to finish citations |
---|
59 | ${LaTeX} ${basename $@}.tex |
---|
60 | |
---|
61 | ## Define the default recipes. |
---|
62 | |
---|
63 | ${Build}: |
---|
64 | mkdir -p ${Build} |
---|
65 | |
---|
66 | ${GRAPHS} : timing.gp timing.dat |
---|
67 | gnuplot -e Build="'${Build}/'" evaluation/timing.gp |
---|
68 | |
---|
69 | %.tex : %.fig |
---|
70 | fig2dev -L eepic $< > ${Build}/$@ |
---|
71 | |
---|
72 | %.ps : %.fig |
---|
73 | fig2dev -L ps $< > ${Build}/$@ |
---|
74 | |
---|
75 | %.pstex : %.fig |
---|
76 | fig2dev -L pstex $< > ${Build}/$@ |
---|
77 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t |
---|
78 | |
---|
79 | # Local Variables: # |
---|
80 | # compile-command: "make" # |
---|
81 | # End: # |
---|