source: doc/papers/OOPSLA17/Makefile @ d893266a

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 d893266a 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 
[5ff188f]1## Define the configuration variables.
[0788c03d]2
[5ff188f]3Build = build
4Figures = figures
5Macros = ../../LaTeXmacros
6TeXLIB = .:${Macros}:${Build}:../../bibliography:
7LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
[0788c03d]8BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
9
[5ff188f]10MAKEFLAGS = --no-print-directory --silent #
[23c27039]11VPATH = ${Build} ${Figures} evaluation
[5ff188f]12
[0788c03d]13## Define the text source files.
14
15SOURCES = ${addsuffix .tex, \
16generic_types \
17}
18
19FIGURES = ${addsuffix .tex, \
20}
21
22PICTURES = ${addsuffix .pstex, \
23}
24
25PROGRAMS = ${addsuffix .tex, \
26}
27
28GRAPHS = ${addsuffix .tex, \
[3895b8b5]29timing \
[0788c03d]30}
31
32## Define the documents that need to be made.
33
34DOCUMENT = generic_types.pdf
35
36# Directives #
37
[23c27039]38.PHONY : all clean                                      # not file names
39
[0788c03d]40all : ${DOCUMENT}
41
42clean :
[5ff188f]43        @rm -frv ${DOCUMENT} ${basename ${DOCUMENT}}.ps ${Build}
[0788c03d]44
45# File Dependencies #
46
47${DOCUMENT} : ${basename ${DOCUMENT}}.ps
48        ps2pdf $<
49
50${basename ${DOCUMENT}}.ps : ${basename ${DOCUMENT}}.dvi
[5ff188f]51        dvips ${Build}/$< -o $@
[0788c03d]52
[23c27039]53${basename ${DOCUMENT}}.dvi : Makefile ${Build} ${GRAPHS} ${PROGRAMS} ${PICTURES} ${FIGURES} ${SOURCES} ../../bibliography/pl.bib
[0788c03d]54        # Must have *.aux file containing citations for bibtex
55        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} ${basename $@}.tex ; fi
[5ff188f]56        -${BibTeX} ${Build}/${basename $@}
57        # Some citations reference others so run again to resolve these citations
[0788c03d]58        ${LaTeX} ${basename $@}.tex
[5ff188f]59        -${BibTeX} ${Build}/${basename $@}
60        # Run again to finish citations
[0788c03d]61        ${LaTeX} ${basename $@}.tex
62
63## Define the default recipes.
64
[5ff188f]65${Build}:
66        mkdir -p ${Build}
67
68${GRAPHS} : timing.gp timing.dat
69        gnuplot -e Build="'${Build}/'" evaluation/timing.gp
[3895b8b5]70
[0788c03d]71%.tex : %.fig
[5ff188f]72        fig2dev -L eepic $< > ${Build}/$@
[0788c03d]73
74%.ps : %.fig
[5ff188f]75        fig2dev -L ps $< > ${Build}/$@
[0788c03d]76
77%.pstex : %.fig
[5ff188f]78        fig2dev -L pstex $< > ${Build}/$@
79        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
[0788c03d]80
81# Local Variables: #
82# compile-command: "make" #
83# End: #
Note: See TracBrowser for help on using the repository browser.