annotate paper/Makefile @ 45:c041b9b3bf9d

add image
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Tue, 18 Feb 2014 19:15:02 +0900
parents b2fdecf63a05
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 TARGET = thesis-paper
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 SRC = $(wildcard *.tex)
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 LATEX = platex
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 DVIPS = dvips
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 DVIPDFM = dvipdfmx
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 RM = rm -f
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 EBB = ebb
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 # Option definitions
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 DVIPDFMOPT =
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 DVIPSOPT = -D 720 -mode esphi -O 0mm,0mm -N0
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 # Suffixes definitions
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 .SUFFIXES: .tex .dvi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 # Recipes
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 all: pdf# $(TARGET).ps
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 open $(TARGET).pdf
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 dvi:
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 @echo "----------- make dvi file ($(TARGET).dvi) ----------"
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 $(LATEX) $(TARGET)
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 $(LATEX) $(TARGET)
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 $(LATEX) $(TARGET)
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 pdf: dvi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 $(DVIPDFM) $(DVIPDFMOPT) $(TARGET)
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 clean:
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 $(RM) *~ \#*
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 @if [ -f $(TARGET).aux ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 then $(RM) $(TARGET).aux;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 @if [ -f $(TARGET).log ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 then $(RM) $(TARGET).log;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 @if [ -f $(TARGET).toc ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 then $(RM) $(TARGET).toc;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 @if [ -f $(TARGET).lof ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 then $(RM) $(TARGET).lof;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44 @if [ -f $(TARGET).lot ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 then $(RM) $(TARGET).lot;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 @if [ -f $(TARGET).big ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 then $(RM) $(TARGET).big;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 @if [ -f $(TARGET).bbl ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 then $(RM) $(TARGET).bbl;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 @if [ -f $(TARGET).ilg ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 then $(RM) $(TARGET).ilg;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 @if [ -f $(TARGET).idx ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 then $(RM) $(TARGET).idx;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 @if [ -f $(TARGET).ind ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 then $(RM) $(TARGET).ind;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 @if [ -f $(TARGET).dvi ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 then $(RM) $(TARGET).dvi;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 @if [ -f $(TARGET).pdf ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 then $(RM) $(TARGET).pdf;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 @if [ -f $(TARGET).out ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 then $(RM) $(TARGET).out;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 @if [ -f $(TARGET).bbl ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 then $(RM) $(TARGET).bbl;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 fi
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 @if [ -f $(TARGET).blg ];\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 then $(RM) $(TARGET).blg;\
b2fdecf63a05 add Makefile & thesis-paper
Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
parents:
diff changeset
76 fi