0
|
1 MAKE=make -f Makefile
|
|
2 LATEX=platex
|
|
3 BIBTEX=jbibtex
|
|
4 MENDEX=mendex
|
|
5 DVIPS=dvips
|
|
6 DVIPDFM=dvipdfm
|
|
7
|
|
8
|
|
9 MAIN_TARGET=master_paper
|
|
10 PS_SUFFIX=.ps
|
|
11 PDF_SUFFIX=.pdf
|
|
12
|
|
13 .SUFFIXES: .tex .dvi
|
|
14
|
|
15 dvi:
|
|
16 @echo "========== MAKE DVI file ($(MAIN_TARGET).dvi) =========="
|
|
17 $(LATEX) $(MAIN_TARGET)
|
|
18
|
|
19 bib: dvi
|
|
20 @echo "========== MAKE Bib file ($(MAIN_TARGET).dvi) =========="
|
|
21 $(BIBTEX) $(MAIN_TARGET)
|
|
22
|
|
23 index: dvi
|
|
24 @echo "========== MAKE index for $(MAIN_TARGET) =========="
|
|
25 $(MENDEX) $(MAIN_TARGET)
|
|
26
|
|
27 final: dvi index
|
|
28 @echo "========== PUBLISHING =========="
|
|
29 @echo "\t first..."
|
|
30 $(LATEX) $(MAIN_TARGET) > /dev/null
|
|
31 @echo "\t second..."
|
|
32 $(LATEX) $(MAIN_TARGET) > /dev/null
|
|
33
|
|
34 ps: final
|
|
35 @echo "========== GENERATE PostScript (PS) =========="
|
|
36 $(DVIPS) $(MAIN_TARGET)
|
|
37
|
|
38 pdf: final
|
|
39 @echo "========== GENERATE PDF file =========="
|
|
40 # out2uni $(MAIN_TARGET)
|
|
41 $(LATEX) $(MAIN_TARGET) > /dev/null
|
|
42 $(DVIPDFM) $(MAIN_TARGET)
|
|
43
|
|
44 clean:
|
|
45 @echo "remove $(MAIN_TARGET)*{aux,log,toc,lof,lot,blg,bbl,ilg,idx,ind,dvi,ps,pdf,out}"
|
|
46 @if [ -f $(MAIN_TARGET).aux ];\
|
|
47 then $(RM) $(MAIN_TARGET).aux;\
|
|
48 fi
|
|
49 @if [ -f $(MAIN_TARGET).log ];\
|
|
50 then $(RM) $(MAIN_TARGET).log;\
|
|
51 fi
|
|
52 @if [ -f $(MAIN_TARGET).toc ];\
|
|
53 then $(RM) $(MAIN_TARGET).toc;\
|
|
54 fi
|
|
55 @if [ -f $(MAIN_TARGET).lof ];\
|
|
56 then $(RM) $(MAIN_TARGET).lof;\
|
|
57 fi
|
|
58 @if [ -f $(MAIN_TARGET).lot ];\
|
|
59 then $(RM) $(MAIN_TARGET).lot;\
|
|
60 fi
|
|
61 @if [ -f $(MAIN_TARGET).blg ];\
|
|
62 then $(RM) $(MAIN_TARGET).blg;\
|
|
63 fi
|
|
64 @if [ -f $(MAIN_TARGET).bbl ];\
|
|
65 then $(RM) $(MAIN_TARGET).bbl;\
|
|
66 fi
|
|
67 @if [ -f $(MAIN_TARGET).ilg ];\
|
|
68 then $(RM) $(MAIN_TARGET).ilg;\
|
|
69 fi
|
|
70 @if [ -f $(MAIN_TARGET).idx ];\
|
|
71 then $(RM) $(MAIN_TARGET).idx;\
|
|
72 fi
|
|
73 @if [ -f $(MAIN_TARGET).ind ];\
|
|
74 then $(RM) $(MAIN_TARGET).ind;\
|
|
75 fi
|
|
76 @if [ -f $(MAIN_TARGET).dvi ];\
|
|
77 then $(RM) $(MAIN_TARGET).dvi;\
|
|
78 fi
|
|
79 @if [ -f $(MAIN_TARGET).ps ];\
|
|
80 then $(RM) $(MAIN_TARGET).ps;\
|
|
81 fi
|
|
82 @if [ -f $(MAIN_TARGET).pdf ];\
|
|
83 then $(RM) $(MAIN_TARGET).pdf;\
|
|
84 fi
|
|
85 @if [ -f $(MAIN_TARGET).out ];\
|
|
86 then $(RM) $(MAIN_TARGET).out;\
|
|
87 fi
|
|
88
|
|
89 veryclean: clean
|
|
90 find ./ -name \*~ -exec rm -f {} \;
|