source: doc/papers/concurrency/Makefile @ 534e4e4

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 534e4e4 was b199e54, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

first complete draft

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