source:
doc/theses/aaron_moss_PhD/phd/Makefile
@
f9c7d27
Last change on this file since f9c7d27 was 3271166, checked in by , 6 years ago | |
---|---|
|
|
File size: 797 bytes |
Rev | Line | |
---|---|---|
[9fce933a] | 1 | BUILD = build |
2 | BIBDIR = ../../../bibliography | |
3 | TEXLIB = .:${BUILD}:${BIBDIR}: | |
4 | ||
5 | LATEX = TEXINPUTS=${TEXLIB} && export TEXINPUTS && pdflatex -interaction= -output-directory=${BUILD} | |
6 | BIBTEX = BIBINPUTS=${TEXLIB} && export BIBINPUTS && bibtex | |
[2a9d12d] | 7 | |
8 | BASE = thesis | |
9 | DOCUMENT = ${BASE}.pdf | |
[9fce933a] | 10 | BIBFILE = ${BIBDIR}/pl.bib |
[2a9d12d] | 11 | |
[62e782e] | 12 | SOURCES = ${addsuffix .tex, \ |
13 | thesis \ | |
[0cf9ffd] | 14 | macros \ |
15 | cfa-macros \ | |
[62e782e] | 16 | frontpgs \ |
17 | introduction \ | |
18 | background \ | |
19 | type-environment \ | |
20 | resolution-heuristics \ | |
21 | conclusion \ | |
22 | } | |
23 | ||
24 | .PHONY : all rebuild-refs clean wc | |
[2a9d12d] | 25 | |
26 | all : ${DOCUMENT} | |
27 | ||
28 | clean : | |
[9fce933a] | 29 | @rm -fv ${BUILD}/* |
[2a9d12d] | 30 | |
[62e782e] | 31 | wc : |
32 | wc ${SOURCES} | |
33 | ||
[9fce933a] | 34 | ${DOCUMENT} : ${SOURCES} ${BUILD} |
[2a9d12d] | 35 | ${LATEX} ${BASE} |
36 | ${LATEX} ${BASE} | |
37 | ||
[9fce933a] | 38 | rebuild-refs : ${SOURCES} ${BIBFILE} ${BUILD} |
[2a9d12d] | 39 | ${LATEX} ${BASE} |
[9fce933a] | 40 | ${BIBTEX} ${BUILD}/${BASE} |
[2a9d12d] | 41 | ${LATEX} ${BASE} |
42 | ${LATEX} ${BASE} | |
[9fce933a] | 43 | |
44 | ${BUILD}: | |
45 | mkdir -p ${BUILD} |
Note: See TracBrowser
for help on using the repository browser.