-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
58 lines (37 loc) · 1.43 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# This work is dedicated to the public domain.
texargs = -interaction nonstopmode -halt-on-error -file-line-error
default: mthesis.pdf # default target if you just type "make"
# Resources and rules for the introductory chapter. Sample 'make' rule
# included to show how you can process data as you compile your thesis
# using standard GNU make constructs.
deps += intro/intro.tex intro/processed.tex
cleans += intro/intro.aux intro/processed.tex
intro/processed.tex: intro/sample.tex
sed -e s/terrible/wonderful/ $< >$@
# Chapter Two
## deps += ...
## cleans += ...
## etc
# The thesis itself. We move the PDF to a new filename so that viewers
# don't keep on trying to reload the file as it's being written and
# rewritten by pdfLaTeX.
deps += myucthesis.cls uct12.clo aasmacros.sty mydeluxetable.sty \
setup.tex thesis.bib yahapj.bst
cleans += thesis.aux thesis.bbl thesis.blg thesis.lof thesis.log \
thesis.lot thesis.out thesis.toc mthesis.pdf setup.aux
toplevels += mthesis.pdf
mthesis.pdf: thesis.tex $(deps)
pdflatex $(texargs) $(basename $<) >chatter.txt
bibtex $(basename $<)
pdflatex $(texargs) $(basename $<) >chatter.txt
pdflatex $(texargs) $(basename $<) >chatter.txt
mv thesis.pdf $@
# Approval page
cleans += approvalpage.aux approvalpage.log approvalpage.pdf
toplevels += approvalpage.pdf
approvalpage.pdf: approvalpage.tex $(deps)
pdflatex $(texargs) $(basename $<)
# Helpers
all: $(toplevels)
clean:
-rm -f $(cleans)