source: doc/papers/concurrency/Makefile @ 34dcc474

new-envwith_gc
Last change on this file since 34dcc474 was 23c27039, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

further harmonize document Makefile and documents

  • Property mode set to 100644
File size: 1.9 KB
RevLine 
[a43dd54]1## Define the configuration variables.
2
3Build = build
[5ff188f]4Figures = figures
[a43dd54]5Macros = ../../LaTeXmacros
[5ff188f]6TeXLIB = .:style:annex:${Macros}:${Build}:../../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
[a43dd54]8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
9
10MAKEFLAGS = --no-print-directory --silent #
[23c27039]11VPATH = ${Build} ${Figures}
[a43dd54]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
42
43# Directives #
44
[5ff188f]45.PHONY : all clean                                      # not file names
[a43dd54]46
47all : ${DOCUMENT}
48
49clean :
50        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
51
52# File Dependencies #
53
54${DOCUMENT} : ${basename ${DOCUMENT}}.ps
55        ps2pdf $<
56
57${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
58        dvips ${Build}/$< -o $@
59
[23c27039]60${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
[5ff188f]61                ${Macros}/common.tex ${Macros}/indexstyle annex/local.bib ../../bibliography/pl.bib
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
[a43dd54]66        ${LaTeX} ${basename $@}.tex
67        -${BibTeX} ${Build}/${basename $@}
[5ff188f]68        # Run again to finish citations
69        ${LaTeX} ${basename $@}.tex
[a43dd54]70
71## Define the default recipes.
72
73${Build}:
74        mkdir -p ${Build}
75
[5ff188f]76%.tex : %.fig
[a43dd54]77        fig2dev -L eepic $< > ${Build}/$@
78
[5ff188f]79%.ps : %.fig
[a43dd54]80        fig2dev -L ps $< > ${Build}/$@
81
[5ff188f]82%.pstex : %.fig
[a43dd54]83        fig2dev -L pstex $< > ${Build}/$@
84        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
85
86# Local Variables: #
87# compile-command: "make" #
88# End: #
Note: See TracBrowser for help on using the repository browser.