[5ff188f] | 1 | ## Define the configuration variables.
|
---|
[038726d] | 2 |
|
---|
[5ff188f] | 3 | Build = build
|
---|
| 4 | Figures = figures
|
---|
| 5 | Macros = ../LaTeXmacros
|
---|
[3b1825b] | 6 | TeXLIB = .:${Macros}:${Build}:
|
---|
[5ff188f] | 7 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
|
---|
[b522435] | 8 | BibDir = ../bibliography
|
---|
| 9 | BibTeX = BIBINPUTS=${BibDir}: && export BIBINPUTS && bibtex
|
---|
[038726d] | 10 |
|
---|
[5ff188f] | 11 | MAKEFLAGS = --no-print-directory --silent #
|
---|
[23c27039] | 12 | VPATH = ${Build} ${Figures}
|
---|
[5ff188f] | 13 |
|
---|
[038726d] | 14 | ## Define the text source files.
|
---|
| 15 |
|
---|
| 16 | SOURCES = ${addsuffix .tex, \
|
---|
| 17 | user \
|
---|
[af4903b] | 18 | ../refrat/keywords \
|
---|
[92c0f81] | 19 | ../refrat/operidents \
|
---|
[038726d] | 20 | }
|
---|
| 21 |
|
---|
| 22 | FIGURES = ${addsuffix .tex, \
|
---|
[fbefc4d] | 23 | EHMHierarchy \
|
---|
[6b6597c] | 24 | Cdecl \
|
---|
[4096de0] | 25 | pointer1 \
|
---|
[038726d] | 26 | }
|
---|
| 27 |
|
---|
| 28 | PICTURES = ${addsuffix .pstex, \
|
---|
[4096de0] | 29 | pointer2 \
|
---|
[038726d] | 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 = user.pdf
|
---|
[fb16d5c] | 41 | BASE = ${basename ${DOCUMENT}}
|
---|
[038726d] | 42 |
|
---|
| 43 | # Directives #
|
---|
| 44 |
|
---|
[5ff188f] | 45 | .PHONY : all clean # not file names
|
---|
| 46 |
|
---|
[038726d] | 47 | all : ${DOCUMENT}
|
---|
| 48 |
|
---|
| 49 | clean :
|
---|
[fb16d5c] | 50 | @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
|
---|
[038726d] | 51 |
|
---|
| 52 | # File Dependencies #
|
---|
| 53 |
|
---|
[e10537a9] | 54 | build/version: ../../configure | ${Build}
|
---|
| 55 | ../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@
|
---|
| 56 |
|
---|
[fb16d5c] | 57 | ${DOCUMENT} : ${BASE}.ps
|
---|
[179510c5] | 58 | ps2pdf -dPDFSETTINGS=/prepress $<
|
---|
[038726d] | 59 |
|
---|
[fb16d5c] | 60 | ${BASE}.ps : ${BASE}.dvi
|
---|
[5ff188f] | 61 | dvips ${Build}/$< -o $@
|
---|
[038726d] | 62 |
|
---|
[cdd25ef9] | 63 | ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${Macros}/common.tex ${Macros}/common.sty \
|
---|
[b522435] | 64 | ${Macros}/lstlang.sty ${Macros}/indexstyle ${BibDir}/pl.bib build/version | ${Build}
|
---|
[038726d] | 65 | # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
|
---|
[5ff188f] | 66 | if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
|
---|
[038726d] | 67 | # Must have *.aux file containing citations for bibtex
|
---|
| 68 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
|
---|
[5ff188f] | 69 | -${BibTeX} ${Build}/${basename $@}
|
---|
| 70 | # Some citations reference others so run again to resolve these citations
|
---|
[af5cfad6] | 71 | ${LaTeX} ${basename $@}.tex
|
---|
| 72 | # -${BibTeX} ${Build}/${basename $@}
|
---|
[038726d] | 73 | # Make index from *.aux entries and input index at end of document
|
---|
[5ff188f] | 74 | makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
|
---|
| 75 | # Run again to finish citations
|
---|
[cdd25ef9] | 76 | # ${LaTeX} ${basename $@}.tex
|
---|
[038726d] | 77 | # Run again to get index title into table of contents
|
---|
[4ab767a] | 78 | # ${LaTeX} ${basename $@}.tex
|
---|
[038726d] | 79 |
|
---|
| 80 | ## Define the default recipes.
|
---|
| 81 |
|
---|
[519242e] | 82 | ${Build} :
|
---|
[5ff188f] | 83 | mkdir -p ${Build}
|
---|
| 84 |
|
---|
[484ee53] | 85 | %.tex : %.fig | ${Build}
|
---|
[5ff188f] | 86 | fig2dev -L eepic $< > ${Build}/$@
|
---|
[038726d] | 87 |
|
---|
[484ee53] | 88 | %.ps : %.fig | ${Build}
|
---|
[5ff188f] | 89 | fig2dev -L ps $< > ${Build}/$@
|
---|
[038726d] | 90 |
|
---|
[484ee53] | 91 | %.pstex : %.fig | ${Build}
|
---|
[5ff188f] | 92 | fig2dev -L pstex $< > ${Build}/$@
|
---|
| 93 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
|
---|
[4096de0] | 94 |
|
---|
[038726d] | 95 | # Local Variables: #
|
---|
| 96 | # compile-command: "make" #
|
---|
| 97 | # End: #
|
---|