forked from wangyif2/RE-for-beginners
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
88 lines (73 loc) · 1.16 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#all: RU EN RU-A5 EN-A5
all: RU EN
clean:
rm -f *.aux
rm -f *.fls
rm -f *.swp
rm -f *.pdf
rm -f *.out
rm -f *.toc
rm -f *.stackdump
rm -f *.bbl
rm -f *.blg
rm -f *.fdb_latexmk
rm -f *.idx
rm -f *.ilg
rm -f *.ind
rm -f *.html
rm -f *.tmp
rm -f *-2k
rm -f *.4ct
rm -f *.4tc
rm -f *.dvi
rm -f *.glg
rm -f *.glo
rm -f *.gls
rm -f *.idv
rm -f *.ist
rm -f *.xref
rm -f *.torrent
rm -f RE_for_beginners-*.log
rm -f Reverse_Engineering_for_Beginners-*.log
rm -f RE4B-*.log
rm -f *~
rm -f *.log
rm -f *.lyx
rm -f *.ni
rm -f *.odt
rm -f *.rtf
# there are two xelatex invocations at the end, because \myref{} doesn't show pages correctly otherwise
define compile
rm -f *.fls
rm -f *.bbl
rm -f *.aux
xelatex $1
makeindex $1
makeglossaries $1
xelatex $1
xelatex $1
endef
RU:
$(call compile,RE4B-RU)
EN:
$(call compile,RE4B-EN)
#RU-A5:
# $(call compile,RE4B-RU-A5)
#EN-A5:
# $(call compile,RE4B-EN-A5)
ES:
$(call compile,RE4B-ES)
PTBR:
$(call compile,RE4B-PTBR)
PL:
$(call compile,RE4B-PL)
IT:
$(call compile,RE4B-IT)
DE:
$(call compile,RE4B-DE)
TH:
$(call compile,RE4B-TH)
NL:
$(call compile,RE4B-NL)
FR:
$(call compile,RE4B-FR)