generated from DaniFoldi/partii-diss-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile.txt
62 lines (51 loc) · 1.67 KB
/
makefile.txt
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
59
60
61
62
# This is the makefile for the Part II demonstration dissertation
#
# Note that continuation lines require '\' and
# that a TAB character preceeds any shell command line
.DELETE_ON_ERROR:
# Rules for building LaTeX documents (see Unix Tools course)
%.pdf %.aux %.idx: %.tex
pdflatex -halt-on-error $<
while grep 'Rerun to get ' $*.log ; do pdflatex $< ; done
%.ind: %.idx
makeindex $*
%.bbl: %.aux
bibtex $*
# Rules for exporting xfig diagrams into PDF or EPS
%.pdf: %.eps
epstopdf --outfile=$@ $<
%.eps: %.fig
fig2dev -L eps $< $@
%.pdftex %.pdftex_t: %.fig
fig2dev -L pdftex_t -p $*.pdftex $< $*.pdftex_t
fig2dev -L pdftex $< $*.pdftex
help:
@echo
@echo "USAGE:"
@echo
@echo "make display help information"
@echo "make proposal.pdf format the proposal as PDF"
@echo "make main.pdf format the dissertation as PDF"
@echo "make all make proposal.pdf and main.pdf"
@echo "make view-proposal format and view the proposal"
@echo "make view-main format and view the dissertation"
@echo "make count display an estimated word count"
@echo "make pub put demodiss.pdf onto your homepage"
@echo "make clean delete all intermediate files"
@echo
view-%: %.pdf
( okular --unique $< || evince $< ) &
main.pdf: figs/cuarms.pdf figs/diagram.pdf makefile.txt proposal.tex main.bbl
makefile.txt: makefile
expand makefile >makefile.txt
count:
detex main.tex | tr -cd '0-9A-Za-z \n' | wc -w
all: proposal.pdf main.pdf
pub: main.pdf
rsync -t $+ $(HOME)/public_html/demodiss.pdf
clean:
rm -f *.aux *.log *.err *.out
rm -f *~ *.lof *.toc *.blg *.bbl
rm -f makefile.txt
distclean: clean
rm -f figs/*.pdf proposal.pdf main.pdf