1 |
LBIN =/usr/local/teTeX/bin |
2 |
LC = $(LBIN)/latex |
3 |
BC = $(LBIN)/bibtex |
4 |
D2PS = $(LBIN)/dvips |
5 |
D2PDF = dvipdf |
6 |
XDVI = $(LBIN)/xdvi |
7 |
|
8 |
.SUFFIXES: $(SUFFIXES) .dvi .ps .bib .tex .bbl .pdf |
9 |
|
10 |
PAPER_ROOT = oopse |
11 |
PICTURES = |
12 |
|
13 |
INFILES = oopse.tex \ |
14 |
header.tex \ |
15 |
footer.tex \ |
16 |
analysis.tex \ |
17 |
DUFF.tex |
18 |
|
19 |
# |
20 |
# A very cool hack to "do the right thing": |
21 |
PSVIEWER = ghostview |
22 |
# |
23 |
# |
24 |
# standard rules: |
25 |
# |
26 |
.dvi.ps: |
27 |
touch $*.ps |
28 |
/bin/rm $*.ps |
29 |
@echo "compiling $*" |
30 |
$(D2PS) -o $*.ps $< |
31 |
|
32 |
.dvi.pdf: |
33 |
touch $*.pdf |
34 |
/bin/rm $*.pdf |
35 |
@echo "compiling $*" |
36 |
$(D2PDF) $< $*.pdf |
37 |
|
38 |
all:: ${PAPER_ROOT}.psview |
39 |
|
40 |
current:: current.psview |
41 |
|
42 |
outline:: ${OUTLINE}.view |
43 |
|
44 |
gs:: ${PAPER_ROOT}.psview |
45 |
|
46 |
print: ${PAPER_ROOT}.ps ${PAPER_ROOT}.pdf |
47 |
|
48 |
current.dvi: ${INFILES} ${PAPER_ROOT}.bib ${PICTURES} |
49 |
$(LC) current |
50 |
$(BC) current |
51 |
$(LC) current |
52 |
$(LC) current |
53 |
|
54 |
${PAPER_ROOT}.dvi: ${INFILES} ${PAPER_ROOT}.bib ${PICTURES} |
55 |
$(LC) ${PAPER_ROOT} |
56 |
$(BC) ${PAPER_ROOT} |
57 |
$(LC) ${PAPER_ROOT} |
58 |
$(LC) ${PAPER_ROOT} |
59 |
|
60 |
current.psview: current.ps |
61 |
${PSVIEWER} current.ps |
62 |
|
63 |
${PAPER_ROOT}.psview: ${PAPER_ROOT}.ps |
64 |
${PSVIEWER} ${PAPER_ROOT}.ps |
65 |
|
66 |
${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi |
67 |
$(XDVI) -fg black ${PAPER_ROOT} |
68 |
|
69 |
clean:: |
70 |
/bin/rm -f *.aux *.log *.bbl *.blg *.dvi *.tbx *.fgx *~ *.fff *.lof |
71 |
|
72 |
|