source: doc/papers/OOPSLA17/Makefile @ ff1e0f38

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since ff1e0f38 was 484ee53, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

update Makefiles so ${Build} is order only

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