1 |
LBIN =/usr/local/bin |
2 |
LC = pdflatex |
3 |
BC = bibtex |
4 |
PDF = Preview |
5 |
D2PS = $(LBIN)/dvips |
6 |
D2PDF = dvipdf |
7 |
XDVI = $(LBIN)/xdvi |
8 |
KDVI = kdvi |
9 |
|
10 |
.SUFFIXES: $(SUFFIXES) .dvi .ps .bib .tex .bbl .pdf |
11 |
|
12 |
PAPER_ROOT = langevin |
13 |
|
14 |
PICTURES = \ |
15 |
RoughShell.pdf \ |
16 |
sketch.pdf \ |
17 |
explanation.pdf |
18 |
|
19 |
INFILES = \ |
20 |
langevin.tex \ |
21 |
langevin.bib |
22 |
|
23 |
# |
24 |
# standard rules: |
25 |
# |
26 |
|
27 |
PSVIEWER = gv |
28 |
PDFVIEWER = kpdf |
29 |
|
30 |
# ".dvi.ps" is the old-fashioned suffix rules = "%.ps: %.dvi" |
31 |
#.dvi.ps: |
32 |
%.ps: %.dvi |
33 |
touch $*.ps |
34 |
/bin/rm $*.ps |
35 |
@echo "compiling $*" |
36 |
$(D2PS) -o $*.ps $< |
37 |
|
38 |
.dvi.pdf: |
39 |
touch $*.pdf |
40 |
/bin/rm $*.pdf |
41 |
@echo "compiling $*" |
42 |
$(D2PDF) $< $*.pdf |
43 |
|
44 |
all:: ${PAPER_ROOT}.view |
45 |
|
46 |
dview:: ${PAPER_ROOT}.view |
47 |
|
48 |
gs:: ${PAPER_ROOT}.psview |
49 |
|
50 |
pdf:: ${PAPER_ROOT}.pdfview |
51 |
|
52 |
${PAPER_ROOT}.dvi: ${INFILES} ${PICTURES} |
53 |
$(LC) --src-specials ${PAPER_ROOT} |
54 |
$(BC) ${PAPER_ROOT} |
55 |
$(LC) --src-specials ${PAPER_ROOT} |
56 |
$(LC) --src-specials ${PAPER_ROOT} |
57 |
|
58 |
current.psview: current.ps |
59 |
${PSVIEWER} current.ps |
60 |
|
61 |
${PAPER_ROOT}.psview: ${PAPER_ROOT}.ps |
62 |
${PSVIEWER} ${PAPER_ROOT}.ps |
63 |
|
64 |
${PAPER_ROOT}.pdfview: ${PAPER_ROOT}.pdf |
65 |
${PDFVIEWER} ${PAPER_ROOT}.pdf |
66 |
|
67 |
#${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi |
68 |
# $(XDVI) -fg black ${PAPER_ROOT} |
69 |
|
70 |
print: ${PAPER_ROOT}.ps ${PAPER_ROOT}.pdf |
71 |
|
72 |
${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi |
73 |
$(KDVI) ${PAPER_ROOT} |
74 |
|
75 |
clean:: |
76 |
/bin/rm -f *.aux *.log *.bbl *.blg *.dvi *.tbx *.fgx *~ *.fff *.lof *.lot mdripple.ps mdripple.pdf *.ttt |