[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
|
---|
| 34 |
|
---|
| 35 | # Directives #
|
---|
| 36 |
|
---|
[23c27039] | 37 | .PHONY : all clean # not file names
|
---|
| 38 |
|
---|
[0b1376f] | 39 | all : ${DOCUMENT}
|
---|
| 40 |
|
---|
| 41 | clean :
|
---|
[23c27039] | 42 | @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
|
---|
[0b1376f] | 43 |
|
---|
| 44 | # File Dependencies #
|
---|
| 45 |
|
---|
| 46 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps
|
---|
| 47 | ps2pdf $<
|
---|
| 48 |
|
---|
| 49 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
|
---|
[23c27039] | 50 | dvips ${Build}/$< -o $@
|
---|
[0b1376f] | 51 |
|
---|
[23c27039] | 52 | ${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
|
---|
| 53 | ${Macros}/common.tex ${Macros}/indexstyle ../../../bibliography/pl.bib
|
---|
[0b1376f] | 54 | # Must have *.aux file containing citations for bibtex
|
---|
| 55 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
|
---|
[23c27039] | 56 | -${BibTeX} ${Build}/${basename $@}
|
---|
| 57 | # Some citations reference others so run again to resolve these citations
|
---|
[0b1376f] | 58 | ${LaTeX} ${basename $@}.tex
|
---|
[23c27039] | 59 | -${BibTeX} ${Build}/${basename $@}
|
---|
| 60 | # Run again to finish citations
|
---|
[0b1376f] | 61 | ${LaTeX} ${basename $@}.tex
|
---|
| 62 |
|
---|
| 63 | ## Define the default recipes.
|
---|
| 64 |
|
---|
[23c27039] | 65 | ${Build}:
|
---|
| 66 | mkdir -p ${Build}
|
---|
| 67 |
|
---|
[0b1376f] | 68 | %.tex : %.fig
|
---|
[23c27039] | 69 | fig2dev -L eepic $< > ${Build}/$@
|
---|
[0b1376f] | 70 |
|
---|
| 71 | %.ps : %.fig
|
---|
[23c27039] | 72 | fig2dev -L ps $< > ${Build}/$@
|
---|
[0b1376f] | 73 |
|
---|
| 74 | %.pstex : %.fig
|
---|
[23c27039] | 75 | fig2dev -L pstex $< > ${Build}/$@
|
---|
| 76 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
|
---|
[0b1376f] | 77 |
|
---|
| 78 | # Local Variables: #
|
---|
| 79 | # compile-command: "make" #
|
---|
| 80 | # End: #
|
---|