source: doc/papers/general/Makefile @ 6171841

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

update macros and build

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