annotate paper/Makefile @ 0:420c2d37b2bf

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