-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·81 lines (58 loc) · 1.63 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
PAPER=paper
all: pdf
pdf: $(PAPER).pdf
pdf-missing-graphics: $(PAPER).pdf-without-pdflatex
dvi: $(PAPER).dvi
SECTIONS = \
intro.tex \
umbrella.tex \
iHeartRadio.tex \
OBD.tex \
blursense.tex \
results.tex \
conclusion.tex
TEXT = $(SECTIONS)
TEX = paper.tex \
$(TEXT)
FIGS = $(wildcard figures/*.pdf)
PS2PDF = ps2pdf
$(PAPER).ps: $(PAPER).dvi
dvips -e 0 -Pcmz -Pamz -G0 -D 600 -t letter $(PAPER) -o $@
$(PAPER).dvi: $(PAPER).tex $(TEX) $(FIGS) $(PAPER).bbl
export TEXINPUTS=.:./latex-styles:; \
latex $(PAPER)
latex $(PAPER)
latex $(PAPER)
$(PAPER).bbl-without-pdflatex: bibdata.bib-without-pdflatex
export TEXINPUTS=.:./latex-styles:; \
latex $(PAPER); bibtex $(PAPER); latex $(PAPER); latex $(PAPER)
$(PAPER).bbl: bibdata.bib
export TEXINPUTS=.:./latex-styles:; \
pdflatex $(PAPER); bibtex $(PAPER); pdflatex $(PAPER); pdflatex $(PAPER)
$(PAPER).pdf-without-pdflatex: $(PAPER).ps
$(PS2PDF) $^ $(PAPER).pdf
$(PAPER).pdf: $(TEX) $(FIGS) $(PAPER).bbl
pdflatex $(PAPER); bibtex $(PAPER); pdflatex $(PAPER); pdflatex $(PAPER)
again:
/bin/rm $(PAPER).dvi; $(MAKE)
DELATEX = detex -l -n
html: $(PAPER).ps
-/bin/rm -rf html
latex2html -image_type gif -split 0 -show_section_numbers \
-local_icons -dir html -transparent -info 0 -antialias_text \
-white -antialias -mkdir $(PAPER).tex
viewhtml:
firefox file://$$PWD/html/index.html
count:
$(DELATEX) $(TEXT) | wc -w
count1:
countwords $(TEXT)
count2:
delatex $(TEX) | wc -w
spell:
ispell $(SECTIONS)
clean:
/bin/rm -f $(PAPER).aux $(PAPER).bbl $(PAPER).blg $(PAPER).dvi \
$(PAPER).log $(PAPER).ps $(PAPER).pdf texput.log
ocd: clean
/bin/rm -f *.*~ *~