annotate handout/Makefile @ 12:d0afeaf4d60c

Chapter 5
author fuchita
date Fri, 15 Feb 2008 20:58:55 +0900
parents 420c2d37b2bf
children
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 DVIPS=dvips
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
5 DVIPDFM=dvipdfm
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
6
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
7
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
8 MAIN_TARGET=handout
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
9 PS_SUFFIX=.ps
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
10 PDF_SUFFIX=.pdf
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
11
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
12 .SUFFIXES: .tex .dvi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
13
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
14 dvi:
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
15 @echo "========== MAKE DVI file ($(MAIN_TARGET).dvi) =========="
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
16 $(LATEX) $(MAIN_TARGET)
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
17
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
18 bib: dvi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
19 @echo "========== MAKE Bib file ($(MAIN_TARGET).dvi) =========="
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
20 $(BIBTEX) $(MAIN_TARGET)
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
21
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
22 final: dvi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
23 @echo "========== PUBLISHING =========="
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
24 @echo "\t first..."
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
25 $(LATEX) $(MAIN_TARGET) > /dev/null
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
26 @echo "\t second..."
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
27 $(LATEX) $(MAIN_TARGET) > /dev/null
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
28
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
29 ps: final
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
30 @echo "========== GENERATE PostScript (PS) =========="
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
31 $(DVIPS) $(MAIN_TARGET)
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
32
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
33 pdf: final
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
34 @echo "========== GENERATE PDF file =========="
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
35 # out2uni $(MAIN_TARGET)
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
36 $(LATEX) $(MAIN_TARGET) > /dev/null
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
37 $(DVIPDFM) $(MAIN_TARGET)
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
38
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
39 clean:
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
40 @echo "remove $(MAIN_TARGET)*{aux,log,toc,lof,lot,blg,bbl,ilg,dvi,ps,pdf,out}"
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
41 @if [ -f $(MAIN_TARGET).aux ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
42 then $(RM) $(MAIN_TARGET).aux;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
43 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
44 @if [ -f $(MAIN_TARGET).log ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
45 then $(RM) $(MAIN_TARGET).log;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
46 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
47 @if [ -f $(MAIN_TARGET).toc ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
48 then $(RM) $(MAIN_TARGET).toc;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
49 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
50 @if [ -f $(MAIN_TARGET).lof ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
51 then $(RM) $(MAIN_TARGET).lof;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
52 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
53 @if [ -f $(MAIN_TARGET).lot ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
54 then $(RM) $(MAIN_TARGET).lot;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
55 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
56 @if [ -f $(MAIN_TARGET).blg ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
57 then $(RM) $(MAIN_TARGET).blg;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
58 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
59 @if [ -f $(MAIN_TARGET).bbl ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
60 then $(RM) $(MAIN_TARGET).bbl;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
61 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
62 @if [ -f $(MAIN_TARGET).ilg ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
63 then $(RM) $(MAIN_TARGET).ilg;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
64 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
65 @if [ -f $(MAIN_TARGET).dvi ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
66 then $(RM) $(MAIN_TARGET).dvi;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
67 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
68 @if [ -f $(MAIN_TARGET).ps ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
69 then $(RM) $(MAIN_TARGET).ps;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
70 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
71 @if [ -f $(MAIN_TARGET).pdf ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
72 then $(RM) $(MAIN_TARGET).pdf;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
73 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
74 @if [ -f $(MAIN_TARGET).out ];\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
75 then $(RM) $(MAIN_TARGET).out;\
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
76 fi
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
77
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
78 veryclean: clean
420c2d37b2bf Initial revision
fuchita
parents:
diff changeset
79 find ./ -name \*~ -exec rm -f {} \;