[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, \ |
---|
[a722c7a] | 20 | Cdecl \ |
---|
[a43dd54] | 21 | } |
---|
| 22 | |
---|
| 23 | PICTURES = ${addsuffix .pstex, \ |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | PROGRAMS = ${addsuffix .tex, \ |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | GRAPHS = ${addsuffix .tex, \ |
---|
| 30 | timing \ |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | ## Define the documents that need to be made. |
---|
| 34 | |
---|
| 35 | DOCUMENT = Paper.pdf |
---|
| 36 | |
---|
| 37 | # Directives # |
---|
| 38 | |
---|
[5ff188f] | 39 | .PHONY : all clean # not file names |
---|
[a43dd54] | 40 | |
---|
| 41 | all : ${DOCUMENT} |
---|
| 42 | |
---|
| 43 | clean : |
---|
| 44 | @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build} |
---|
| 45 | |
---|
| 46 | # File Dependencies # |
---|
| 47 | |
---|
| 48 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps |
---|
| 49 | ps2pdf $< |
---|
| 50 | |
---|
| 51 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi |
---|
| 52 | dvips ${Build}/$< -o $@ |
---|
| 53 | |
---|
[23c27039] | 54 | ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \ |
---|
[5ff188f] | 55 | ${Macros}/common.tex ${Macros}/indexstyle ../../bibliography/pl.bib |
---|
| 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 |
---|
[a43dd54] | 60 | ${LaTeX} ${basename $@}.tex |
---|
| 61 | -${BibTeX} ${Build}/${basename $@} |
---|
[5ff188f] | 62 | # Run again to finish citations |
---|
| 63 | ${LaTeX} ${basename $@}.tex |
---|
[a43dd54] | 64 | |
---|
| 65 | ## Define the default recipes. |
---|
| 66 | |
---|
| 67 | ${Build}: |
---|
| 68 | mkdir -p ${Build} |
---|
| 69 | |
---|
[5ff188f] | 70 | ${GRAPHS} : timing.gp timing.dat |
---|
| 71 | gnuplot -e Build="'${Build}/'" evaluation/timing.gp |
---|
[a43dd54] | 72 | |
---|
[5ff188f] | 73 | %.tex : %.fig |
---|
[a43dd54] | 74 | fig2dev -L eepic $< > ${Build}/$@ |
---|
| 75 | |
---|
[5ff188f] | 76 | %.ps : %.fig |
---|
[a43dd54] | 77 | fig2dev -L ps $< > ${Build}/$@ |
---|
| 78 | |
---|
[5ff188f] | 79 | %.pstex : %.fig |
---|
[a43dd54] | 80 | fig2dev -L pstex $< > ${Build}/$@ |
---|
| 81 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t |
---|
| 82 | |
---|
| 83 | # Local Variables: # |
---|
| 84 | # compile-command: "make" # |
---|
| 85 | # End: # |
---|