source:
doc/theses/aaron_moss_PhD/phd/Makefile
@
07ec1a2
Last change on this file since 07ec1a2 was 6cb935d, checked in by , 6 years ago | |
---|---|
|
|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[9fce933a] | 1 | BUILD = build |
2 | BIBDIR = ../../../bibliography | |
[6cb935d] | 3 | EVALDIR = evaluation |
[9fce933a] | 4 | TEXLIB = .:${BUILD}:${BIBDIR}: |
5 | ||
[a72b240] | 6 | # LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && pdflatex -interaction=nonstopmode -halt-on-error -output-directory=${BUILD} |
7 | LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${BUILD} | |
[9fce933a] | 8 | BIBTEX = BIBINPUTS=${TEXLIB} && export BIBINPUTS && bibtex |
[2a9d12d] | 9 | |
[6cb935d] | 10 | VPATH = ${EVALDIR} |
11 | ||
[2a9d12d] | 12 | BASE = thesis |
13 | DOCUMENT = ${BASE}.pdf | |
[9fce933a] | 14 | BIBFILE = ${BIBDIR}/pl.bib |
[2a9d12d] | 15 | |
[62e782e] | 16 | SOURCES = ${addsuffix .tex, \ |
17 | thesis \ | |
[0cf9ffd] | 18 | macros \ |
19 | cfa-macros \ | |
[62e782e] | 20 | frontpgs \ |
21 | introduction \ | |
22 | background \ | |
[48b7085e] | 23 | generic-types \ |
[62e782e] | 24 | type-environment \ |
25 | resolution-heuristics \ | |
26 | conclusion \ | |
27 | } | |
28 | ||
[6cb935d] | 29 | GRAPHS = ${addsuffix .tex, \ |
30 | generic-timing \ | |
31 | } | |
32 | ||
[62e782e] | 33 | .PHONY : all rebuild-refs clean wc |
[2a9d12d] | 34 | |
35 | all : ${DOCUMENT} | |
36 | ||
37 | clean : | |
[9fce933a] | 38 | @rm -fv ${BUILD}/* |
[2a9d12d] | 39 | |
[62e782e] | 40 | wc : |
41 | wc ${SOURCES} | |
42 | ||
[a72b240] | 43 | ${DOCUMENT} : ${BASE}.ps |
44 | ps2pdf ${BUILD}/$< | |
45 | ||
46 | ${BASE}.ps : ${BASE}.dvi | |
47 | dvips ${BUILD}/$< -o ${BUILD}/$@ | |
[2a9d12d] | 48 | |
[6cb935d] | 49 | ${BASE}.dvi : Makefile ${SOURCES} ${GRAPHS} ${BIBFILE} ${BUILD} |
[2a9d12d] | 50 | ${LATEX} ${BASE} |
[9fce933a] | 51 | ${BIBTEX} ${BUILD}/${BASE} |
[2a9d12d] | 52 | ${LATEX} ${BASE} |
53 | ${LATEX} ${BASE} | |
[9fce933a] | 54 | |
[6cb935d] | 55 | ${GRAPHS} : generic-timing.gp generic-timing.dat ${BUILD} |
56 | gnuplot -e BUILD="'${BUILD}/'" ${EVALDIR}/generic-timing.gp | |
[a72b240] | 57 | |
[9fce933a] | 58 | ${BUILD}: |
59 | mkdir -p ${BUILD} |
Note: See TracBrowser
for help on using the repository browser.