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