0
|
1 TARGET = master_paper
|
|
2
|
|
3 SRC = $(wildcard *.tex)
|
|
4
|
|
5 LATEX = platex -shell-escape
|
|
6 BIBTEX = pbibtex
|
|
7 DVIPS = dvips
|
|
8 DVIPDFM = dvipdfmx
|
|
9 RM = rm -f
|
|
10 EBB = ebb
|
|
11
|
|
12 # Option definitions
|
|
13 DVIPDFMOPT =
|
|
14 DVIPSOPT = -D 720 -mode esphi -O 0mm,0mm -N0
|
|
15
|
|
16 # Suffixes definitions
|
|
17 .SUFFIXES: .tex .dvi
|
|
18
|
|
19 # Recipes
|
|
20 all: pdf# $(TARGET).ps
|
|
21 open $(TARGET).pdf
|
|
22
|
|
23 dvi:
|
|
24 @echo "----------- make dvi file ($(TARGET).dvi) ----------"
|
|
25 $(LATEX) $(TARGET)
|
|
26 $(BIBTEX) $(TARGET)
|
|
27 $(LATEX) $(TARGET)
|
|
28 $(LATEX) $(TARGET)
|
|
29 pdf: dvi
|
|
30 $(DVIPDFM) $(DVIPDFMOPT) $(TARGET)
|
|
31
|
|
32 clean:
|
|
33 $(RM) *~ \#*
|
|
34 @if [ -f $(TARGET).aux ];\
|
|
35 then $(RM) $(TARGET).aux;\
|
|
36 fi
|
|
37 @if [ -f $(TARGET).log ];\
|
|
38 then $(RM) $(TARGET).log;\
|
|
39 fi
|
|
40 @if [ -f $(TARGET).toc ];\
|
|
41 then $(RM) $(TARGET).toc;\
|
|
42 fi
|
|
43 @if [ -f $(TARGET).lof ];\
|
|
44 then $(RM) $(TARGET).lof;\
|
|
45 fi
|
|
46 @if [ -f $(TARGET).lot ];\
|
|
47 then $(RM) $(TARGET).lot;\
|
|
48 fi
|
|
49 @if [ -f $(TARGET).big ];\
|
|
50 then $(RM) $(TARGET).big;\
|
|
51 fi
|
|
52 @if [ -f $(TARGET).bbl ];\
|
|
53 then $(RM) $(TARGET).bbl;\
|
|
54 fi
|
|
55 @if [ -f $(TARGET).ilg ];\
|
|
56 then $(RM) $(TARGET).ilg;\
|
|
57 fi
|
|
58 @if [ -f $(TARGET).idx ];\
|
|
59 then $(RM) $(TARGET).idx;\
|
|
60 fi
|
|
61 @if [ -f $(TARGET).ind ];\
|
|
62 then $(RM) $(TARGET).ind;\
|
|
63 fi
|
|
64 @if [ -f $(TARGET).dvi ];\
|
|
65 then $(RM) $(TARGET).dvi;\
|
|
66 fi
|
|
67 @if [ -f $(TARGET).pdf ];\
|
|
68 then $(RM) $(TARGET).pdf;\
|
|
69 fi
|
|
70 @if [ -f $(TARGET).out ];\
|
|
71 then $(RM) $(TARGET).out;\
|
|
72 fi
|
|
73 @if [ -f $(TARGET).bbl ];\
|
|
74 then $(RM) $(TARGET).bbl;\
|
|
75 fi
|
|
76 @if [ -f $(TARGET).blg ];\
|
|
77 then $(RM) $(TARGET).blg;\
|
|
78 fi
|