| [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 \
 | 
|---|
 | 11 | }
 | 
|---|
 | 12 | 
 | 
|---|
 | 13 | FIGURES = ${addsuffix .tex, \
 | 
|---|
 | 14 | }
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | PICTURES = ${addsuffix .pstex, \
 | 
|---|
 | 17 | }
 | 
|---|
 | 18 | 
 | 
|---|
 | 19 | PROGRAMS = ${addsuffix .tex, \
 | 
|---|
 | 20 | }
 | 
|---|
 | 21 | 
 | 
|---|
 | 22 | GRAPHS = ${addsuffix .tex, \
 | 
|---|
 | 23 | }
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | ## Define the documents that need to be made.
 | 
|---|
 | 26 | 
 | 
|---|
 | 27 | DOCUMENT = concurrency.pdf
 | 
|---|
 | 28 | 
 | 
|---|
 | 29 | # Directives #
 | 
|---|
 | 30 | 
 | 
|---|
 | 31 | all : ${DOCUMENT}
 | 
|---|
 | 32 | 
 | 
|---|
 | 33 | clean :
 | 
|---|
| [c69adb7] | 34 |         rm -f *.bbl *.aux *.dvi *.idx *.ilg *.ind *.brf *.out *.log *.toc *.blg *.pstex_t *.cf *.glg *.glo *.gls *.ist \
 | 
|---|
| [694ee7d] | 35 |                 ${FIGURES} ${PICTURES} ${PROGRAMS} ${GRAPHS} ${basename ${DOCUMENT}}.ps ${DOCUMENT}
 | 
|---|
 | 36 | 
 | 
|---|
 | 37 | # File Dependencies #
 | 
|---|
 | 38 | 
 | 
|---|
 | 39 | ${DOCUMENT} : ${basename ${DOCUMENT}}.ps
 | 
|---|
 | 40 |         ps2pdf $<
 | 
|---|
 | 41 | 
 | 
|---|
 | 42 | ${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
 | 
|---|
 | 43 |         dvips $< -o $@
 | 
|---|
 | 44 | 
 | 
|---|
 | 45 | ${basename ${DOCUMENT}}.dvi : Makefile ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ${basename ${DOCUMENT}}.tex \
 | 
|---|
 | 46 |                 ../../LaTeXmacros/common.tex ../../LaTeXmacros/indexstyle
 | 
|---|
 | 47 |         # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
 | 
|---|
 | 48 |         if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
 | 
|---|
 | 49 |         # Must have *.aux file containing citations for bibtex
 | 
|---|
 | 50 |         if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
 | 
|---|
 | 51 |         -${BibTeX} ${basename $@}
 | 
|---|
 | 52 |         # Some citations reference others so run steps again to resolve these citations
 | 
|---|
 | 53 |         ${LaTeX} ${basename $@}.tex
 | 
|---|
 | 54 |         -${BibTeX} ${basename $@}
 | 
|---|
 | 55 |         # Make index from *.aux entries and input index at end of document
 | 
|---|
| [c69adb7] | 56 |         makeglossaries ${basename $@}
 | 
|---|
| [694ee7d] | 57 |         #${LaTeX} ${basename $@}.tex
 | 
|---|
 | 58 |         # Run again to get index title into table of contents
 | 
|---|
 | 59 |         ${LaTeX} ${basename $@}.tex
 | 
|---|
| [c69adb7] | 60 |         ${LaTeX} ${basename $@}.tex
 | 
|---|
 | 61 | 
 | 
|---|
| [694ee7d] | 62 | 
 | 
|---|
 | 63 | predefined :
 | 
|---|
 | 64 |         sed -f predefined.sed ${basename ${DOCUMENT}}.tex > ${basename $@}.cf
 | 
|---|
 | 65 | 
 | 
|---|
 | 66 | ## Define the default recipes.
 | 
|---|
 | 67 | 
 | 
|---|
 | 68 | %.tex : %.fig
 | 
|---|
 | 69 |         fig2dev -L eepic $< > $@
 | 
|---|
 | 70 | 
 | 
|---|
 | 71 | %.ps : %.fig
 | 
|---|
 | 72 |         fig2dev -L ps $< > $@
 | 
|---|
 | 73 | 
 | 
|---|
 | 74 | %.pstex : %.fig
 | 
|---|
 | 75 |         fig2dev -L pstex $< > $@
 | 
|---|
 | 76 |         fig2dev -L pstex_t -p $@ $< > $@_t
 | 
|---|
 | 77 | 
 | 
|---|
 | 78 | # Local Variables: #
 | 
|---|
 | 79 | # compile-command: "make" #
 | 
|---|
 | 80 | # End: #
 | 
|---|