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