[038726d] | 1 | ## Define the appropriate configuration variables.
|
---|
| 2 |
|
---|
[3f5a28b] | 3 | TeXLIB = .:../LaTeXmacros:../bibliography/:
|
---|
[554a0db] | 4 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
|
---|
[e55ca05] | 5 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
|
---|
[038726d] | 6 |
|
---|
| 7 | ## Define the text source files.
|
---|
| 8 |
|
---|
| 9 | SOURCES = ${addsuffix .tex, \
|
---|
| 10 | user \
|
---|
[af4903b] | 11 | ../refrat/keywords \
|
---|
[92c0f81] | 12 | ../refrat/operidents \
|
---|
[038726d] | 13 | }
|
---|
| 14 |
|
---|
| 15 | FIGURES = ${addsuffix .tex, \
|
---|
[fbefc4d] | 16 | EHMHierarchy \
|
---|
[6b6597c] | 17 | Cdecl \
|
---|
[4096de0] | 18 | pointer1 \
|
---|
[038726d] | 19 | }
|
---|
| 20 |
|
---|
| 21 | PICTURES = ${addsuffix .pstex, \
|
---|
[4096de0] | 22 | pointer2 \
|
---|
[038726d] | 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 = user.pdf
|
---|
| 34 |
|
---|
| 35 | # Directives #
|
---|
| 36 |
|
---|
| 37 | all : ${DOCUMENT}
|
---|
| 38 |
|
---|
| 39 | clean :
|
---|
| 40 | rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf \
|
---|
| 41 | ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
|
---|
| 42 |
|
---|
| 43 | # File Dependencies #
|
---|
| 44 |
|
---|
| 45 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps
|
---|
| 46 | ps2pdf $<
|
---|
| 47 |
|
---|
| 48 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
|
---|
| 49 | dvips $< -o $@
|
---|
| 50 |
|
---|
[e55ca05] | 51 | ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
|
---|
[218aecf] | 52 | ../LaTeXmacros/common.tex ../LaTeXmacros/lstlang.sty ../LaTeXmacros/indexstyle ../bibliography/cfa.bib
|
---|
[038726d] | 53 | # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
|
---|
| 54 | if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
|
---|
| 55 | # Must have *.aux file containing citations for bibtex
|
---|
| 56 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
|
---|
| 57 | -${BibTeX} ${basename $@}
|
---|
| 58 | # Some citations reference others so run steps again to resolve these citations
|
---|
| 59 | ${LaTeX} ${basename $@}.tex
|
---|
| 60 | -${BibTeX} ${basename $@}
|
---|
| 61 | # Make index from *.aux entries and input index at end of document
|
---|
[e55ca05] | 62 | makeindex -s ../LaTeXmacros/indexstyle ${basename $@}.idx
|
---|
[038726d] | 63 | ${LaTeX} ${basename $@}.tex
|
---|
| 64 | # Run again to get index title into table of contents
|
---|
| 65 | ${LaTeX} ${basename $@}.tex
|
---|
| 66 |
|
---|
| 67 | predefined :
|
---|
| 68 | sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
|
---|
| 69 |
|
---|
| 70 | ## Define the default recipes.
|
---|
| 71 |
|
---|
| 72 | %.tex : %.fig
|
---|
| 73 | fig2dev -L eepic $< > $@
|
---|
| 74 |
|
---|
| 75 | %.ps : %.fig
|
---|
| 76 | fig2dev -L ps $< > $@
|
---|
| 77 |
|
---|
[4096de0] | 78 | %.pstex : %.fig
|
---|
| 79 | fig2dev -L pstex $< > $@
|
---|
| 80 | fig2dev -L pstex_t -p $@ $< > $@_t
|
---|
| 81 |
|
---|
[038726d] | 82 | # Local Variables: #
|
---|
| 83 | # compile-command: "make" #
|
---|
| 84 | # End: #
|
---|