[0788c03d] | 1 | ## Define the appropriate configuration variables. |
---|
| 2 | |
---|
| 3 | TeXLIB = .:../LaTeXmacros:../LaTeXmacros/listings:../LaTeXmacros/enumitem:../bibliography/: |
---|
| 4 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error |
---|
| 5 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex |
---|
| 6 | |
---|
| 7 | ## Define the text source files. |
---|
| 8 | |
---|
| 9 | SOURCES = ${addsuffix .tex, \ |
---|
| 10 | generic_types \ |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | FIGURES = ${addsuffix .tex, \ |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | PICTURES = ${addsuffix .pstex, \ |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | PROGRAMS = ${addsuffix .tex, \ |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | GRAPHS = ${addsuffix .tex, \ |
---|
[3895b8b5] | 23 | timing \ |
---|
[0788c03d] | 24 | } |
---|
| 25 | |
---|
| 26 | ## Define the documents that need to be made. |
---|
| 27 | |
---|
| 28 | DOCUMENT = generic_types.pdf |
---|
| 29 | |
---|
| 30 | # Directives # |
---|
| 31 | |
---|
| 32 | all : ${DOCUMENT} |
---|
| 33 | |
---|
| 34 | clean : |
---|
| 35 | rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \ |
---|
| 36 | ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT} |
---|
| 37 | |
---|
| 38 | # File Dependencies # |
---|
| 39 | |
---|
| 40 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps |
---|
| 41 | ps2pdf $< |
---|
| 42 | |
---|
| 43 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi |
---|
| 44 | dvips $< -o $@ |
---|
| 45 | |
---|
| 46 | #${DOCUMENT} : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \ |
---|
| 47 | |
---|
[3895b8b5] | 48 | ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex ../bibliography/cfa.bib |
---|
[0788c03d] | 49 | # Conditionally create an empty *.idx (index) file for inclusion until makeindex is run. |
---|
| 50 | if [ ! -r ${basename $@}.idx ] ; then touch ${basename $@}.idx ; fi |
---|
| 51 | # Must have *.aux file containing citations for bibtex |
---|
| 52 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi |
---|
| 53 | -${BibTeX} ${basename $@} |
---|
| 54 | # Some citations reference others so run steps again to resolve these citations |
---|
| 55 | ${LaTeX} ${basename $@}.tex |
---|
| 56 | -${BibTeX} ${basename $@} |
---|
| 57 | # Make index from *.aux entries and input index at end of document |
---|
| 58 | makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx |
---|
| 59 | ${LaTeX} ${basename $@}.tex |
---|
| 60 | # Run again to get index title into table of contents |
---|
| 61 | ${LaTeX} ${basename $@}.tex |
---|
| 62 | |
---|
| 63 | predefined : |
---|
| 64 | sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf |
---|
| 65 | |
---|
| 66 | ## Define the default recipes. |
---|
| 67 | |
---|
[a381b46] | 68 | ${GRAPHS} : evaluation/timing.gp evaluation/timing.dat |
---|
[3895b8b5] | 69 | gnuplot evaluation/timing.gp |
---|
| 70 | |
---|
[0788c03d] | 71 | %.tex : %.fig |
---|
| 72 | fig2dev -L eepic $< > $@ |
---|
| 73 | |
---|
| 74 | %.ps : %.fig |
---|
| 75 | fig2dev -L ps $< > $@ |
---|
| 76 | |
---|
| 77 | %.pstex : %.fig |
---|
| 78 | fig2dev -L pstex $< > $@ |
---|
| 79 | fig2dev -L pstex_t -p $@ $< > $@_t |
---|
| 80 | |
---|
| 81 | # Local Variables: # |
---|
| 82 | # compile-command: "make" # |
---|
| 83 | # End: # |
---|