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 = lipidModel.epsi \ |
12 |
dynamicPropsMem.eps |
13 |
|
14 |
# list section files in order of inclusion |
15 |
INFILES = preamble.tex \ |
16 |
titleAbstract.tex \ |
17 |
ssd.tex \ |
18 |
DUFF.tex \ |
19 |
analysis.tex \ |
20 |
acknowledgements.tex \ |
21 |
bibEnd.tex |
22 |
|
23 |
# |
24 |
# A very cool hack to "do the right thing": |
25 |
PSVIEWER = ghostview |
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 |
current:: current.psview |
45 |
|
46 |
outline:: ${OUTLINE}.view |
47 |
|
48 |
gs:: ${PAPER_ROOT}.psview |
49 |
|
50 |
print: ${PAPER_ROOT}.ps ${PAPER_ROOT}.pdf |
51 |
|
52 |
${PAPER_ROOT}.dvi: ${INFILES} ${PAPER_ROOT}.bib ${PICTURES} |
53 |
/bin/rm -rf ${PAPER_ROOT}.tex |
54 |
for i in ${INFILES}; \ |
55 |
do cat $$i >> ${PAPER_ROOT}.tex; \ |
56 |
done; |
57 |
$(LC) ${PAPER_ROOT} |
58 |
$(BC) ${PAPER_ROOT} |
59 |
$(LC) ${PAPER_ROOT} |
60 |
$(LC) ${PAPER_ROOT} |
61 |
|
62 |
current.psview: current.ps |
63 |
${PSVIEWER} current.ps |
64 |
|
65 |
${PAPER_ROOT}.psview: ${PAPER_ROOT}.ps |
66 |
${PSVIEWER} ${PAPER_ROOT}.ps |
67 |
|
68 |
${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi |
69 |
$(XDVI) -fg black ${PAPER_ROOT} |
70 |
|
71 |
clean:: |
72 |
/bin/rm -f *.aux *.log *.bbl *.blg *.dvi *.tbx *.fgx *~ *.fff *.lof mule.* |
73 |
|
74 |
|