| [a43dd54] | 1 | ## Define the configuration variables.
 | 
|---|
 | 2 | 
 | 
|---|
 | 3 | Build = build
 | 
|---|
| [5ff188f] | 4 | Figures = figures
 | 
|---|
| [d046db2] | 5 | Macros = ../AMA/AMA-stix/ama
 | 
|---|
| [3b1825b] | 6 | TeXLIB = .:../../LaTeXmacros:${Macros}:${Build}:
 | 
|---|
| [5ff188f] | 7 | LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
 | 
|---|
| [3b1825b] | 8 | BibTeX = BIBINPUTS=annex:../../bibliography: && export BIBINPUTS && bibtex
 | 
|---|
| [a43dd54] | 9 | 
 | 
|---|
| [d5ccbe9] | 10 | MAKEFLAGS = --no-print-directory # --silent
 | 
|---|
| [23c27039] | 11 | VPATH = ${Build} ${Figures}
 | 
|---|
| [a43dd54] | 12 | 
 | 
|---|
 | 13 | ## Define the text source files.
 | 
|---|
 | 14 | 
 | 
|---|
 | 15 | SOURCES = ${addsuffix .tex, \
 | 
|---|
 | 16 | Paper \
 | 
|---|
 | 17 | }
 | 
|---|
 | 18 | 
 | 
|---|
 | 19 | FIGURES = ${addsuffix .tex, \
 | 
|---|
 | 20 | int_monitor \
 | 
|---|
 | 21 | dependency \
 | 
|---|
| [b199e54] | 22 | RunTimeStructure \
 | 
|---|
| [a43dd54] | 23 | }
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | PICTURES = ${addsuffix .pstex, \
 | 
|---|
| [7261e3c] | 26 | FullProdConsStack \
 | 
|---|
 | 27 | FullCoroutinePhases \
 | 
|---|
 | 28 | corlayout \
 | 
|---|
| [bd12159] | 29 | CondSigWait \
 | 
|---|
| [6d43cc57] | 30 | monitor \
 | 
|---|
 | 31 | ext_monitor \
 | 
|---|
| [a43dd54] | 32 | system \
 | 
|---|
 | 33 | monitor_structs \
 | 
|---|
 | 34 | }
 | 
|---|
 | 35 | 
 | 
|---|
 | 36 | PROGRAMS = ${addsuffix .tex, \
 | 
|---|
 | 37 | }
 | 
|---|
 | 38 | 
 | 
|---|
 | 39 | GRAPHS = ${addsuffix .tex, \
 | 
|---|
 | 40 | }
 | 
|---|
 | 41 | 
 | 
|---|
 | 42 | ## Define the documents that need to be made.
 | 
|---|
 | 43 | 
 | 
|---|
 | 44 | DOCUMENT = Paper.pdf
 | 
|---|
| [d5ccbe9] | 45 | BASE = ${basename ${DOCUMENT}}
 | 
|---|
| [a43dd54] | 46 | 
 | 
|---|
 | 47 | # Directives #
 | 
|---|
 | 48 | 
 | 
|---|
| [5ff188f] | 49 | .PHONY : all clean                                      # not file names
 | 
|---|
| [a43dd54] | 50 | 
 | 
|---|
 | 51 | all : ${DOCUMENT}
 | 
|---|
 | 52 | 
 | 
|---|
 | 53 | clean :
 | 
|---|
| [d5ccbe9] | 54 |         @rm -frv ${DOCUMENT} ${BASE}.ps WileyNJD-AMA.bst ${BASE}.out.ps ${Build}
 | 
|---|
| [a43dd54] | 55 | 
 | 
|---|
 | 56 | # File Dependencies #
 | 
|---|
 | 57 | 
 | 
|---|
| [d5ccbe9] | 58 | ${DOCUMENT} : ${BASE}.ps
 | 
|---|
| [a43dd54] | 59 |         ps2pdf $<
 | 
|---|
 | 60 | 
 | 
|---|
| [d5ccbe9] | 61 | ${BASE}.ps : ${BASE}.dvi
 | 
|---|
| [a43dd54] | 62 |         dvips ${Build}/$< -o $@
 | 
|---|
 | 63 | 
 | 
|---|
| [6d43cc57] | 64 | ${BASE}.dvi : Makefile ${BASE}.out.ps WileyNJD-AMA.bst ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
 | 
|---|
 | 65 |                 annex/local.bib ../../bibliography/pl.bib | ${Build}
 | 
|---|
| [5ff188f] | 66 |         # Must have *.aux file containing citations for bibtex
 | 
|---|
 | 67 |         if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
 | 
|---|
| [6d43cc57] | 68 |         -${BibTeX} ${Build}/${basename $@}
 | 
|---|
| [5ff188f] | 69 |         # Some citations reference others so run again to resolve these citations
 | 
|---|
| [a43dd54] | 70 |         ${LaTeX} ${basename $@}.tex
 | 
|---|
| [6d43cc57] | 71 |         -${BibTeX} ${Build}/${basename $@}
 | 
|---|
| [5ff188f] | 72 |         # Run again to finish citations
 | 
|---|
 | 73 |         ${LaTeX} ${basename $@}.tex
 | 
|---|
| [a43dd54] | 74 | 
 | 
|---|
 | 75 | ## Define the default recipes.
 | 
|---|
 | 76 | 
 | 
|---|
| [6d43cc57] | 77 | ${Build} :
 | 
|---|
| [a43dd54] | 78 |         mkdir -p ${Build}
 | 
|---|
 | 79 | 
 | 
|---|
| [6d43cc57] | 80 | ${BASE}.out.ps : | ${Build}
 | 
|---|
| [fb16d5c] | 81 |         ln -fs ${Build}/Paper.out.ps .
 | 
|---|
| [d5ccbe9] | 82 | 
 | 
|---|
| [6d43cc57] | 83 | WileyNJD-AMA.bst :
 | 
|---|
| [d046db2] | 84 |         ln -fs ../AMA/AMA-stix/ama/WileyNJD-AMA.bst .
 | 
|---|
| [d5ccbe9] | 85 | 
 | 
|---|
| [6d43cc57] | 86 | %.tex : %.fig | ${Build}
 | 
|---|
| [a43dd54] | 87 |         fig2dev -L eepic $< > ${Build}/$@
 | 
|---|
 | 88 | 
 | 
|---|
| [6d43cc57] | 89 | %.ps : %.fig | ${Build}
 | 
|---|
| [a43dd54] | 90 |         fig2dev -L ps $< > ${Build}/$@
 | 
|---|
 | 91 | 
 | 
|---|
| [6d43cc57] | 92 | %.pstex : %.fig | ${Build}
 | 
|---|
| [a43dd54] | 93 |         fig2dev -L pstex $< > ${Build}/$@
 | 
|---|
 | 94 |         fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
 | 
|---|
 | 95 | 
 | 
|---|
 | 96 | # Local Variables: #
 | 
|---|
 | 97 | # compile-command: "make" #
 | 
|---|
 | 98 | # End: #
 | 
|---|