source: doc/papers/general/Makefile @ 92f8e18

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 92f8e18 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
RevLine 
[a43dd54]1## Define the configuration variables.
2
3Build = build
[5ff188f]4Figures = figures
[a43dd54]5Macros = ../../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:../../bibliography:
[5ff188f]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} evaluation
[a43dd54]12
13## Define the text source files.
14
15SOURCES = ${addsuffix .tex, \
16Paper \
17}
18
19FIGURES = ${addsuffix .tex, \
[04ba967]20Cdecl \
[a43dd54]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
[5ff188f]39.PHONY : all clean                                      # not file names
[a43dd54]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
[23c27039]54${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} \
[5ff188f]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
[a43dd54]60        ${LaTeX} ${basename $@}.tex
61        -${BibTeX} ${Build}/${basename $@}
[5ff188f]62        # Run again to finish citations
63        ${LaTeX} ${basename $@}.tex
[a43dd54]64
65## Define the default recipes.
66
67${Build}:
68        mkdir -p ${Build}
69
[5ff188f]70${GRAPHS} : timing.gp timing.dat
71        gnuplot -e Build="'${Build}/'" evaluation/timing.gp
[a43dd54]72
[5ff188f]73%.tex : %.fig
[a43dd54]74        fig2dev -L eepic $< > ${Build}/$@
75
[5ff188f]76%.ps : %.fig
[a43dd54]77        fig2dev -L ps $< > ${Build}/$@
78
[5ff188f]79%.pstex : %.fig
[a43dd54]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.