[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 |
|
---|
[a514fed] | 49 | INSTALLDOCDIR = /u/cforall/public_html/doc
|
---|
| 50 | install : all ${INSTALLDOCDIR}
|
---|
| 51 | cp -f ${DOCUMENT} ${INSTALLDOCDIR}/${DOCUMENT}
|
---|
| 52 |
|
---|
[038726d] | 53 | clean :
|
---|
[fb16d5c] | 54 | @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
|
---|
[038726d] | 55 |
|
---|
| 56 | # File Dependencies #
|
---|
| 57 |
|
---|
[e10537a9] | 58 | build/version: ../../configure | ${Build}
|
---|
| 59 | ../../configure --version | grep "cfa-cc configure" | grep -oEe "([0-9]+\.)+[0-9]+" > $@
|
---|
| 60 |
|
---|
[fb16d5c] | 61 | ${DOCUMENT} : ${BASE}.ps
|
---|
[179510c5] | 62 | ps2pdf -dPDFSETTINGS=/prepress $<
|
---|
[038726d] | 63 |
|
---|
[fb16d5c] | 64 | ${BASE}.ps : ${BASE}.dvi
|
---|
[5ff188f] | 65 | dvips ${Build}/$< -o $@
|
---|
[038726d] | 66 |
|
---|
[cdd25ef9] | 67 | ${BASE}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${Macros}/common.tex ${Macros}/common.sty \
|
---|
[b522435] | 68 | ${Macros}/lstlang.sty ${Macros}/indexstyle ${BibDir}/pl.bib build/version | ${Build}
|
---|
[038726d] | 69 | # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
|
---|
[5ff188f] | 70 | if [ ! -r ${basename $@}.ind ] ; then touch ${Build}/${basename $@}.ind ; fi
|
---|
[038726d] | 71 | # Must have *.aux file containing citations for bibtex
|
---|
| 72 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
|
---|
[5ff188f] | 73 | -${BibTeX} ${Build}/${basename $@}
|
---|
| 74 | # Some citations reference others so run again to resolve these citations
|
---|
[af5cfad6] | 75 | ${LaTeX} ${basename $@}.tex
|
---|
| 76 | # -${BibTeX} ${Build}/${basename $@}
|
---|
[038726d] | 77 | # Make index from *.aux entries and input index at end of document
|
---|
[5ff188f] | 78 | makeindex -s ${Macros}/indexstyle ${Build}/${basename $@}.idx
|
---|
| 79 | # Run again to finish citations
|
---|
[cdd25ef9] | 80 | # ${LaTeX} ${basename $@}.tex
|
---|
[038726d] | 81 | # Run again to get index title into table of contents
|
---|
[4ab767a] | 82 | # ${LaTeX} ${basename $@}.tex
|
---|
[038726d] | 83 |
|
---|
| 84 | ## Define the default recipes.
|
---|
| 85 |
|
---|
[519242e] | 86 | ${Build} :
|
---|
[5ff188f] | 87 | mkdir -p ${Build}
|
---|
| 88 |
|
---|
[484ee53] | 89 | %.tex : %.fig | ${Build}
|
---|
[5ff188f] | 90 | fig2dev -L eepic $< > ${Build}/$@
|
---|
[038726d] | 91 |
|
---|
[484ee53] | 92 | %.ps : %.fig | ${Build}
|
---|
[5ff188f] | 93 | fig2dev -L ps $< > ${Build}/$@
|
---|
[038726d] | 94 |
|
---|
[484ee53] | 95 | %.pstex : %.fig | ${Build}
|
---|
[5ff188f] | 96 | fig2dev -L pstex $< > ${Build}/$@
|
---|
| 97 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
|
---|
[4096de0] | 98 |
|
---|
[038726d] | 99 | # Local Variables: #
|
---|
| 100 | # compile-command: "make" #
|
---|
| 101 | # End: #
|
---|