[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, \
|
---|
[6d43cc57] | 26 | monitor \
|
---|
| 27 | ext_monitor \
|
---|
[a43dd54] | 28 | system \
|
---|
| 29 | monitor_structs \
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | PROGRAMS = ${addsuffix .tex, \
|
---|
| 33 | }
|
---|
| 34 |
|
---|
| 35 | GRAPHS = ${addsuffix .tex, \
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | ## Define the documents that need to be made.
|
---|
| 39 |
|
---|
| 40 | DOCUMENT = Paper.pdf
|
---|
[d5ccbe9] | 41 | BASE = ${basename ${DOCUMENT}}
|
---|
[a43dd54] | 42 |
|
---|
| 43 | # Directives #
|
---|
| 44 |
|
---|
[5ff188f] | 45 | .PHONY : all clean # not file names
|
---|
[a43dd54] | 46 |
|
---|
| 47 | all : ${DOCUMENT}
|
---|
| 48 |
|
---|
| 49 | clean :
|
---|
[d5ccbe9] | 50 | @rm -frv ${DOCUMENT} ${BASE}.ps WileyNJD-AMA.bst ${BASE}.out.ps ${Build}
|
---|
[a43dd54] | 51 |
|
---|
| 52 | # File Dependencies #
|
---|
| 53 |
|
---|
[d5ccbe9] | 54 | ${DOCUMENT} : ${BASE}.ps
|
---|
[a43dd54] | 55 | ps2pdf $<
|
---|
| 56 |
|
---|
[d5ccbe9] | 57 | ${BASE}.ps : ${BASE}.dvi
|
---|
[a43dd54] | 58 | dvips ${Build}/$< -o $@
|
---|
| 59 |
|
---|
[6d43cc57] | 60 | ${BASE}.dvi : Makefile ${BASE}.out.ps WileyNJD-AMA.bst ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
|
---|
| 61 | annex/local.bib ../../bibliography/pl.bib | ${Build}
|
---|
[5ff188f] | 62 | # Must have *.aux file containing citations for bibtex
|
---|
| 63 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
|
---|
[6d43cc57] | 64 | -${BibTeX} ${Build}/${basename $@}
|
---|
[5ff188f] | 65 | # Some citations reference others so run again to resolve these citations
|
---|
[a43dd54] | 66 | ${LaTeX} ${basename $@}.tex
|
---|
[6d43cc57] | 67 | -${BibTeX} ${Build}/${basename $@}
|
---|
[5ff188f] | 68 | # Run again to finish citations
|
---|
| 69 | ${LaTeX} ${basename $@}.tex
|
---|
[a43dd54] | 70 |
|
---|
| 71 | ## Define the default recipes.
|
---|
| 72 |
|
---|
[6d43cc57] | 73 | ${Build} :
|
---|
[a43dd54] | 74 | mkdir -p ${Build}
|
---|
| 75 |
|
---|
[6d43cc57] | 76 | ${BASE}.out.ps : | ${Build}
|
---|
[fb16d5c] | 77 | ln -fs ${Build}/Paper.out.ps .
|
---|
[d5ccbe9] | 78 |
|
---|
[6d43cc57] | 79 | WileyNJD-AMA.bst :
|
---|
[d046db2] | 80 | ln -fs ../AMA/AMA-stix/ama/WileyNJD-AMA.bst .
|
---|
[d5ccbe9] | 81 |
|
---|
[6d43cc57] | 82 | %.tex : %.fig | ${Build}
|
---|
[a43dd54] | 83 | fig2dev -L eepic $< > ${Build}/$@
|
---|
| 84 |
|
---|
[6d43cc57] | 85 | %.ps : %.fig | ${Build}
|
---|
[a43dd54] | 86 | fig2dev -L ps $< > ${Build}/$@
|
---|
| 87 |
|
---|
[6d43cc57] | 88 | %.pstex : %.fig | ${Build}
|
---|
[a43dd54] | 89 | fig2dev -L pstex $< > ${Build}/$@
|
---|
| 90 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
|
---|
| 91 |
|
---|
| 92 | # Local Variables: #
|
---|
| 93 | # compile-command: "make" #
|
---|
| 94 | # End: #
|
---|