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