1 |
xsun |
3336 |
#LC = pdflatex |
2 |
|
|
#BC = bibtex |
3 |
|
|
#PDF = Preview |
4 |
|
|
LC = latex |
5 |
|
|
BC = bibtex |
6 |
|
|
D2PS = dvips |
7 |
|
|
D2PDF = dvipdf |
8 |
|
|
XDVI = xdvi |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
.SUFFIXES: $(SUFFIXES) .dvi .ps .bib .tex .bbl .pdf |
12 |
|
|
|
13 |
|
|
PAPER_ROOT = dissertation |
14 |
|
|
|
15 |
|
|
PICTURES = \ |
16 |
|
|
|
17 |
|
|
INFILES = phdPreamble.tex \ |
18 |
|
|
Introduction.tex \ |
19 |
|
|
mc.tex \ |
20 |
|
|
md.tex \ |
21 |
|
|
ld.tex \ |
22 |
|
|
Conclusion.tex \ |
23 |
|
|
phdBib.tex |
24 |
|
|
|
25 |
|
|
#SINFILES = \ |
26 |
|
|
# SupportingInfo.tex \ |
27 |
|
|
# dissertation.bib |
28 |
|
|
|
29 |
|
|
# |
30 |
|
|
# standard rules: |
31 |
|
|
# |
32 |
|
|
PSVIEWER = kghostview |
33 |
|
|
PDFVIEWER = kpdf |
34 |
|
|
|
35 |
|
|
# ".dvi.ps" is the old-fashioned suffix rules = "%.ps: %.dvi" |
36 |
|
|
#.dvi.ps: |
37 |
|
|
%.ps: %.dvi |
38 |
|
|
touch $*.ps |
39 |
|
|
/bin/rm $*.ps |
40 |
|
|
@echo "compiling $*" |
41 |
|
|
$(D2PS) -o $*.ps $< |
42 |
|
|
|
43 |
|
|
.dvi.pdf: |
44 |
|
|
touch $*.pdf |
45 |
|
|
/bin/rm $*.pdf |
46 |
|
|
@echo "compiling $*" |
47 |
|
|
$(D2PDF) $< $*.pdf |
48 |
|
|
|
49 |
|
|
all:: ${PAPER_ROOT}.view |
50 |
|
|
|
51 |
|
|
dview:: ${PAPER_ROOT}.view |
52 |
|
|
|
53 |
|
|
ps:: ${PAPER_ROOT}.psview |
54 |
|
|
|
55 |
|
|
pdf:: ${PAPER_ROOT}.pdfview |
56 |
|
|
|
57 |
|
|
${PAPER_ROOT}.tex: ${INFILES} ${PAPER_ROOT}.bib ${PICTURES} |
58 |
|
|
/bin/rm -rf ${PAPER_ROOT}.tex |
59 |
|
|
for i in ${INFILES}; \ |
60 |
|
|
do cat $$i >> ${PAPER_ROOT}.tex; \ |
61 |
|
|
done; |
62 |
|
|
|
63 |
|
|
${PAPER_ROOT}.dvi: ${PAPER_ROOT}.tex |
64 |
|
|
$(LC) --src-specials ${PAPER_ROOT} |
65 |
|
|
$(BC) ${PAPER_ROOT} |
66 |
|
|
$(LC) --src-specials ${PAPER_ROOT} |
67 |
|
|
$(LC) --src-specials ${PAPER_ROOT} |
68 |
|
|
|
69 |
|
|
current.psview: current.ps |
70 |
|
|
${PSVIEWER} current.ps |
71 |
|
|
|
72 |
|
|
${PAPER_ROOT}.psview: ${PAPER_ROOT}.ps |
73 |
|
|
${PSVIEWER} ${PAPER_ROOT}.ps |
74 |
|
|
|
75 |
|
|
${PAPER_ROOT}.pdfview: ${PAPER_ROOT}.pdf |
76 |
|
|
${PDFVIEWER} ${PAPER_ROOT}.pdf |
77 |
|
|
|
78 |
|
|
#${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi |
79 |
|
|
# $(XDVI) -fg black ${PAPER_ROOT} |
80 |
|
|
|
81 |
|
|
print: ${PAPER_ROOT}.ps ${PAPER_ROOT}.pdf |
82 |
|
|
|
83 |
|
|
${PAPER_ROOT}.view: ${PAPER_ROOT}.dvi |
84 |
|
|
$(KDVI) ${PAPER_ROOT} |
85 |
|
|
|
86 |
|
|
clean:: |
87 |
|
|
/bin/rm -f *.aux *.log *.bbl *.blg *.dvi *.tbx *.fgx *~ *.fff *.lof *.lot dissertation.pdf *.ttt *.toc *.lol dissertation.tex |