1 |
.SUFFIXES: $(SUFFIXES) .dvi .ps .bib .tex .bbl .pdf |
2 |
|
3 |
PAPER_ROOT = auxillary_slide |
4 |
|
5 |
AIX_PSVIEWER = ghostview |
6 |
Linux_PSVIEWER = ghostview |
7 |
SunOS_PSVIEWER = ghostview |
8 |
|
9 |
INFILES = auxillary_slide.tex |
10 |
# PICTURES = |
11 |
# |
12 |
# A very cool hack to "do the right thing": |
13 |
PSVIEWER = ${$(OS)_PSVIEWER} |
14 |
# |
15 |
# |
16 |
# standard rules: |
17 |
# |
18 |
.dvi.ps: |
19 |
touch $*.ps |
20 |
/bin/rm $*.ps |
21 |
@echo "compiling $*" |
22 |
dvips -o $*.ps $< |
23 |
|
24 |
.dvi.pdf: |
25 |
touch $*.pdf |
26 |
/bin/rm $*.pdf |
27 |
@echo "compiling $*" |
28 |
dvipdf $< $*.pdf |
29 |
|
30 |
all:: ${PAPER_ROOT}.view |
31 |
|
32 |
summary:: ${PAPER_ROOT}_summary.view |
33 |
|
34 |
outline:: ${OUTLINE}.view |
35 |
|
36 |
gs:: ${PAPER_ROOT}.psview |
37 |
|
38 |
|
39 |
print: ${PAPER_ROOT}.ps ${PAPER_ROOT}.pdf |
40 |
print_summary: ${PAPER_ROOT}_summary.ps ${PAPER_ROOT}_summary.pdf |
41 |
print_outline: ${OUTLINE}.ps |
42 |
lpr ${OUTLINE}.ps |
43 |
|
44 |
${PAPER_ROOT}.dvi: ${INFILES} ${PAPER_ROOT}.bib ${PICTURES} |
45 |
latex ${PAPER_ROOT} |
46 |
bibtex ${PAPER_ROOT} |
47 |
latex ${PAPER_ROOT} |
48 |
latex ${PAPER_ROOT} |
49 |
|
50 |
${PAPER_ROOT}_summary.dvi: ${PAPER_ROOT}_summary.tex ${PAPER_ROOT}.bib ${PICTURES} |
51 |
latex ${PAPER_ROOT}_summary |
52 |
bibtex ${PAPER_ROOT}_summary |
53 |
latex ${PAPER_ROOT}_summary |
54 |
latex ${PAPER_ROOT}_summary |
55 |
|
56 |
${OUTLINE}.dvi: ${OUTLINE}.tex ${OUTLINE}.bib ${PICTURES} |
57 |
latex ${OUTLINE} |
58 |
bibtex ${OUTLINE} |
59 |
latex ${OUTLINE} |
60 |
latex ${OUTLINE} |
61 |
chmod 664 ${OUTLINE}.blg ${OUTLINE}.bbl ${OUTLINE}.aux ${OUTLINE}.dvi ${OUTLINE}.log |
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 |
${PAPER_ROOT}_summary.view: ${PAPER_ROOT}_summary.dvi |
70 |
xdvi -fg black ${PAPER_ROOT}_summary |
71 |
|
72 |
${OUTLINE}.view: ${OUTLINE}.dvi |
73 |
xdvi -fg black ${OUTLINE} |
74 |
|
75 |
clean:: |
76 |
/bin/rm -f *.aux *.log *.bbl *.blg *.dvi *.tbx *.fgx *~ *.fff *.lof |
77 |
|
78 |
|