[df75fe97] | 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 = ${Build} ${Figures} |
---|
| 12 | |
---|
| 13 | ## Define the text source files. |
---|
| 14 | |
---|
| 15 | SOURCES = ${addsuffix .tex, \ |
---|
| 16 | comp_II \ |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | FIGURES = ${addsuffix .tex, \ |
---|
[a037f85] | 20 | base \ |
---|
| 21 | empty \ |
---|
| 22 | emptybit \ |
---|
| 23 | emptytree \ |
---|
[7a0f1d25] | 24 | emptytls \ |
---|
[a037f85] | 25 | resize \ |
---|
[7a0f1d25] | 26 | system \ |
---|
[df75fe97] | 27 | } |
---|
| 28 | |
---|
| 29 | PICTURES = ${addsuffix .pstex, \ |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | PROGRAMS = ${addsuffix .tex, \ |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | GRAPHS = ${addsuffix .tex, \ |
---|
| 36 | } |
---|
| 37 | |
---|
| 38 | ## Define the documents that need to be made. |
---|
| 39 | |
---|
| 40 | DOCUMENT = comp_II.pdf |
---|
| 41 | BASE = ${basename ${DOCUMENT}} |
---|
| 42 | |
---|
| 43 | # Directives # |
---|
| 44 | |
---|
| 45 | .PHONY : all clean # not file names |
---|
| 46 | |
---|
| 47 | all : ${DOCUMENT} |
---|
| 48 | |
---|
| 49 | clean : |
---|
| 50 | @rm -frv ${DOCUMENT} ${BASE}.ps ${Build} |
---|
| 51 | |
---|
| 52 | # File Dependencies # |
---|
| 53 | |
---|
| 54 | ${DOCUMENT} : ${BASE}.ps |
---|
| 55 | ps2pdf $< |
---|
| 56 | |
---|
| 57 | ${BASE}.ps : ${BASE}.dvi |
---|
| 58 | dvips ${Build}/$< -o $@ |
---|
| 59 | |
---|
| 60 | ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \ |
---|
| 61 | ${Macros}/common.tex ${Macros}/indexstyle ../../../bibliography/pl.bib \ |
---|
| 62 | local.bib glossary.tex | ${Build} |
---|
| 63 | # Must have *.aux file containing citations for bibtex |
---|
| 64 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi |
---|
| 65 | -${BibTeX} ${Build}/${basename $@} |
---|
| 66 | # Some citations reference others so run again to resolve these citations |
---|
| 67 | ${LaTeX} ${basename $@}.tex |
---|
| 68 | -${BibTeX} ${Build}/${basename $@} |
---|
| 69 | # Make index from *.aux entries and input index at end of document |
---|
| 70 | makeglossaries -q -s ${Build}/${basename $@}.ist ${Build}/${basename $@} |
---|
| 71 | # Run again to finish citations |
---|
| 72 | ${LaTeX} ${basename $@}.tex |
---|
| 73 | |
---|
| 74 | ## Define the default recipes. |
---|
| 75 | |
---|
| 76 | ${Build}: |
---|
| 77 | mkdir -p ${Build} |
---|
| 78 | |
---|
[a037f85] | 79 | %.tex : img/%.fig ${Build} |
---|
[df75fe97] | 80 | fig2dev -L eepic $< > ${Build}/$@ |
---|
| 81 | |
---|
[a037f85] | 82 | %.ps : img/%.fig | ${Build} |
---|
[df75fe97] | 83 | fig2dev -L ps $< > ${Build}/$@ |
---|
| 84 | |
---|
[a037f85] | 85 | %.pstex : img/%.fig | ${Build} |
---|
[df75fe97] | 86 | fig2dev -L pstex $< > ${Build}/$@ |
---|
| 87 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t |
---|
| 88 | |
---|
| 89 | # Local Variables: # |
---|
| 90 | # compile-command: "make" # |
---|
| 91 | # End: # |
---|