1 |
mmeineke |
93 |
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_paper |
11 |
mmeineke |
99 |
PICTURES = ssd.epsi lipidModel.epsi |
12 |
mmeineke |
93 |
|
13 |
|
|
|
14 |
|
|
AIX_PSVIEWER = ghostview |
15 |
|
|
Linux_PSVIEWER = ghostview |
16 |
|
|
SunOS_PSVIEWER = ghostview |
17 |
|
|
|
18 |
|
|
INFILES = canidacy_paper.tex |
19 |
|
|
|
20 |
|
|
# |
21 |
|
|
# A very cool hack to "do the right thing": |
22 |
|
|
PSVIEWER = ${$(OS)_PSVIEWER} |
23 |
|
|
# |
24 |
|
|
# |
25 |
|
|
# standard rules: |
26 |
|
|
# |
27 |
|
|
.dvi.ps: |
28 |
|
|
touch $*.ps |
29 |
|
|
/bin/rm $*.ps |
30 |
|
|
@echo "compiling $*" |
31 |
|
|
$(D2PS) -o $*.ps $< |
32 |
|
|
|
33 |
|
|
.dvi.pdf: |
34 |
|
|
touch $*.pdf |
35 |
|
|
/bin/rm $*.pdf |
36 |
|
|
@echo "compiling $*" |
37 |
|
|
$(D2PDF) $< $*.pdf |
38 |
|
|
|
39 |
|
|
all:: ${PAPER_ROOT}.psview |
40 |
|
|
|
41 |
|
|
outline:: ${OUTLINE}.view |
42 |
|
|
|
43 |
|
|
gs:: ${PAPER_ROOT}.psview |
44 |
|
|
|
45 |
|
|
print: ${PAPER_ROOT}.ps ${PAPER_ROOT}.pdf |
46 |
|
|
print_outline: ${OUTLINE}.ps |
47 |
|
|
lpr ${OUTLINE}.ps |
48 |
|
|
|
49 |
|
|
${PAPER_ROOT}.dvi: ${INFILES} ${PAPER_ROOT}.bib ${PICTURES} |
50 |
|
|
$(LC) ${PAPER_ROOT} |
51 |
|
|
$(BC) ${PAPER_ROOT} |
52 |
|
|
$(LC) ${PAPER_ROOT} |
53 |
|
|
$(LC) ${PAPER_ROOT} |
54 |
|
|
|
55 |
|
|
${PAPER_ROOT}.psview: ${PAPER_ROOT}.ps |
56 |
|
|
${PSVIEWER} ${PAPER_ROOT}.ps |
57 |
|
|
|
58 |
|
|
${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi |
59 |
|
|
$(XDVI) -fg black ${PAPER_ROOT} |
60 |
|
|
|
61 |
|
|
clean:: |
62 |
|
|
/bin/rm -f *.aux *.log *.bbl *.blg *.dvi *.tbx *.fgx *~ *.fff *.lof |
63 |
|
|
|
64 |
|
|
|