source: doc/papers/concurrency/Makefile @ d7a02ae

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since d7a02ae was 7261e3c, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago

add new diagrams

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