source: doc/papers/concurrency/Makefile @ 8419b76

ADTast-experimentalpthread-emulationqualifiedEnum
Last change on this file since 8419b76 was bd12159, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago

complete draft for second version of concurrency paper

  • 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 = .:../../LaTeXmacros:${Macros}:${Build}:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
8BibTeX = BIBINPUTS=annex:../../bibliography: && 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, \
26FullProdConsStack \
27FullCoroutinePhases \
28corlayout \
29CondSigWait \
30monitor \
31ext_monitor \
32system \
33monitor_structs \
34}
35
36PROGRAMS = ${addsuffix .tex, \
37}
38
39GRAPHS = ${addsuffix .tex, \
40}
41
42## Define the documents that need to be made.
43
44DOCUMENT = Paper.pdf
45BASE = ${basename ${DOCUMENT}}
46
47# Directives #
48
49.PHONY : all clean                                      # not file names
50
51all : ${DOCUMENT}
52
53clean :
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
83WileyNJD-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: #
Note: See TracBrowser for help on using the repository browser.