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