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