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