source: doc/papers/general/Makefile @ e59f0bf

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 e59f0bf was 04ba967, checked in by Aaron Moss <a3moss@…>, 7 years ago

Fix Makefile for figures

  • Property mode set to 100644
File size: 1.9 KB
Line 
1## Define the configuration variables.
2
3Build = build
4Figures = figures
5Macros = ../../LaTeXmacros
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
36
37# Directives #
38
39.PHONY : all clean                                      # not file names
40
41all : ${DOCUMENT}
42
43clean :
44        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
45
46# File Dependencies #
47
48${DOCUMENT} : ${basename ${DOCUMENT}}.ps
49        ps2pdf $<
50
51${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
52        dvips ${Build}/$< -o $@
53
54${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
55                ${Macros}/common.tex ${Macros}/indexstyle ../../bibliography/pl.bib
56        # Must have *.aux file containing citations for bibtex
57        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
58        -${BibTeX} ${Build}/${basename $@}
59        # Some citations reference others so run again to resolve these citations
60        ${LaTeX} ${basename $@}.tex
61        -${BibTeX} ${Build}/${basename $@}
62        # Run again to finish citations
63        ${LaTeX} ${basename $@}.tex
64
65## Define the default recipes.
66
67${Build}:
68        mkdir -p ${Build}
69
70${GRAPHS} : timing.gp timing.dat
71        gnuplot -e Build="'${Build}/'" evaluation/timing.gp
72
73%.tex : %.fig
74        fig2dev -L eepic $< > ${Build}/$@
75
76%.ps : %.fig
77        fig2dev -L ps $< > ${Build}/$@
78
79%.pstex : %.fig
80        fig2dev -L pstex $< > ${Build}/$@
81        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
82
83# Local Variables: #
84# compile-command: "make" #
85# End: #
Note: See TracBrowser for help on using the repository browser.