[694ee7d] | 1 | ## Define the appropriate configuration variables.
|
---|
| 2 |
|
---|
[c69adb7] | 3 | TeXLIB = .:../../LaTeXmacros:../../LaTeXmacros/listings:../../LaTeXmacros/enumitem:~/bibliographies:
|
---|
[694ee7d] | 4 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error
|
---|
| 5 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
|
---|
| 6 |
|
---|
| 7 | ## Define the text source files.
|
---|
| 8 |
|
---|
| 9 | SOURCES = ${addsuffix .tex, \
|
---|
| 10 | concurrency \
|
---|
[687165a] | 11 | style \
|
---|
[0f9bef3] | 12 | cfa-format \
|
---|
[687165a] | 13 | glossary \
|
---|
[694ee7d] | 14 | }
|
---|
| 15 |
|
---|
| 16 | FIGURES = ${addsuffix .tex, \
|
---|
[b512454] | 17 | monitor \
|
---|
| 18 | ext_monitor \
|
---|
[694ee7d] | 19 | }
|
---|
| 20 |
|
---|
| 21 | PICTURES = ${addsuffix .pstex, \
|
---|
| 22 | }
|
---|
| 23 |
|
---|
| 24 | PROGRAMS = ${addsuffix .tex, \
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | GRAPHS = ${addsuffix .tex, \
|
---|
| 28 | }
|
---|
| 29 |
|
---|
| 30 | ## Define the documents that need to be made.
|
---|
| 31 |
|
---|
| 32 | DOCUMENT = concurrency.pdf
|
---|
| 33 |
|
---|
| 34 | # Directives #
|
---|
| 35 |
|
---|
| 36 | all : ${DOCUMENT}
|
---|
| 37 |
|
---|
| 38 | clean :
|
---|
[b512454] | 39 | rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf *.glg *.glo *.gls *.ist *.acn *.acr *.alg \
|
---|
[694ee7d] | 40 | ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
|
---|
| 41 |
|
---|
| 42 | # File Dependencies #
|
---|
| 43 |
|
---|
| 44 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps
|
---|
| 45 | ps2pdf $<
|
---|
| 46 |
|
---|
| 47 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
|
---|
| 48 | dvips $< -o $@
|
---|
| 49 |
|
---|
| 50 | ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
|
---|
| 51 | ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle
|
---|
| 52 | # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
|
---|
| 53 | if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
|
---|
| 54 | # Must have *.aux file containing citations for bibtex
|
---|
| 55 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
|
---|
| 56 | -${BibTeX} ${basename $@}
|
---|
| 57 | # Some citations reference others so run steps again to resolve these citations
|
---|
| 58 | ${LaTeX} ${basename $@}.tex
|
---|
| 59 | -${BibTeX} ${basename $@}
|
---|
| 60 | # Make index from *.aux entries and input index at end of document
|
---|
[c69adb7] | 61 | makeglossaries ${basename $@}
|
---|
[694ee7d] | 62 | #${LaTeX} ${basename $@}.tex
|
---|
| 63 | # Run again to get index title into table of contents
|
---|
| 64 | ${LaTeX} ${basename $@}.tex
|
---|
[9b4343e] | 65 | -./bump_ver.sh
|
---|
[c69adb7] | 66 | ${LaTeX} ${basename $@}.tex
|
---|
| 67 |
|
---|
[694ee7d] | 68 |
|
---|
| 69 | predefined :
|
---|
| 70 | sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
|
---|
| 71 |
|
---|
| 72 | ## Define the default recipes.
|
---|
| 73 |
|
---|
| 74 | %.tex : %.fig
|
---|
| 75 | fig2dev -L eepic $< > $@
|
---|
| 76 |
|
---|
| 77 | %.ps : %.fig
|
---|
| 78 | fig2dev -L ps $< > $@
|
---|
| 79 |
|
---|
| 80 | %.pstex : %.fig
|
---|
| 81 | fig2dev -L pstex $< > $@
|
---|
| 82 | fig2dev -L pstex_t -p $@ $< > $@_t
|
---|
| 83 |
|
---|
[9b4343e] | 84 |
|
---|
[694ee7d] | 85 | # Local Variables: #
|
---|
| 86 | # compile-command: "make" #
|
---|
| 87 | # End: #
|
---|