1 |
tim |
2685 |
LBIN =/usr/local/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 = dissertation |
11 |
|
|
PICTURES = \ |
12 |
|
|
|
13 |
|
|
|
14 |
|
|
|
15 |
|
|
# list section files in order of inclusion |
16 |
|
|
INFILES = phdPreamble.tex \ |
17 |
|
|
Introduction.tex \ |
18 |
|
|
Methodology.tex \ |
19 |
|
|
Lipid.tex\ |
20 |
|
|
LiquidCrystal.tex \ |
21 |
|
|
Conclusion.tex \ |
22 |
|
|
Appendix.tex \ |
23 |
|
|
phdBib.tex |
24 |
|
|
|
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 |
|
|
dview:: ${PAPER_ROOT}.view |
45 |
|
|
|
46 |
|
|
current:: current.psview |
47 |
|
|
|
48 |
|
|
outline:: ${OUTLINE}.view |
49 |
|
|
|
50 |
|
|
gs:: ${PAPER_ROOT}.psview |
51 |
|
|
|
52 |
|
|
print: ${PAPER_ROOT}.ps ${PAPER_ROOT}.pdf |
53 |
|
|
|
54 |
|
|
${PAPER_ROOT}.tex: ${INFILES} ${PAPER_ROOT}.bib ${PICTURES} |
55 |
|
|
/bin/rm -rf ${PAPER_ROOT}.tex |
56 |
|
|
for i in ${INFILES}; \ |
57 |
|
|
do cat $$i >> ${PAPER_ROOT}.tex; \ |
58 |
|
|
done; |
59 |
|
|
|
60 |
|
|
${PAPER_ROOT}.dvi: ${PAPER_ROOT}.tex |
61 |
|
|
$(LC) ${PAPER_ROOT} |
62 |
|
|
$(BC) ${PAPER_ROOT} |
63 |
|
|
$(LC) ${PAPER_ROOT} |
64 |
|
|
$(LC) ${PAPER_ROOT} |
65 |
|
|
|
66 |
|
|
current.psview: current.ps |
67 |
|
|
${PSVIEWER} current.ps |
68 |
|
|
|
69 |
|
|
${PAPER_ROOT}.psview: ${PAPER_ROOT}.ps |
70 |
|
|
${PSVIEWER} ${PAPER_ROOT}.ps |
71 |
|
|
|
72 |
|
|
${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi |
73 |
|
|
$(XDVI) -fg black ${PAPER_ROOT} |
74 |
|
|
|
75 |
|
|
clean:: |
76 |
|
|
/bin/rm -f *.aux *.log *.bbl *.blg *.dvi *.tbx *.fgx *~ *.fff *.lof mule.* |
77 |
|
|
|
78 |
|
|
|