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