source: doc/papers/concurrency/Makefile @ 7c45c42

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumwith_gc
Last change on this file since 7c45c42 was fb16d5c, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

put into canonical form to handle parallel build

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