-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
58 lines (42 loc) · 1.35 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
MAIN =libro
FONTS =tiparoj
LATEXMK =latexmk
XELATEX =-xelatex
LUALATEX =-lualatex
LATEXMKOPT =-file-line-error
SYNCTEX =-synctex=1
BUILDOPT =-interaction=nonstopmode -halt-on-error -silent -cd
# LATEXMKOPT =-xelatex -shell-escape -file-line-error -norc
# BUILDOPT =-synctex=1 -interaction=nonstopmode -silent
# DEBUGOPT =-dependents -logfilewarninglist -recorder -rules -time -verbose -interaction=errorstopmode
# .PHONY: $(MAIN).pdf all clean cleanup debug force
.PHONY: main cxefa $(MAIN) $(MAIN).pdf all xe lua clean fonts $(FONTS) $(FONTS).pdf
all: $(MAIN).pdf
$(MAIN).pdf:
$(LATEXMK) $(XELATEX) $(SYNCTEX) $(BUILDOPT) $(MAIN)
$(MAIN):
$(LATEXMK) $(XELATEX) $(SYNCTEX) $(BUILDOPT) $(MAIN)
main:
$(LATEXMK) $(XELATEX) $(SYNCTEX) $(BUILDOPT) $(MAIN)
cxefa:
$(LATEXMK) $(XELATEX) $(SYNCTEX) $(BUILDOPT) $(MAIN)
xe:
$(LATEXMK) $(XELATEX) $(SYNCTEX) $(BUILDOPT) $(MAIN)
lua:
$(LATEXMK) $(LUALATEX) $(SYNCTEX) $(BUILDOPT) $(MAIN)
clean:
$(LATEXMK) -C
# debug:
# $(LATEXMK) $(XELATEX) $(DEBUGOPT) $(MAIN)
# clean:
# $(LATEXMK) -c $(MAIN)
# cleanup:
# $(LATEXMK) -C $(MAIN)
# force:
# $(LATEXMK) $(XELATEX) $(SYNCTEX) $(BUILDOPT) -g $(MAIN)
$(FONTS).pdf:
$(LATEXMK) $(XELATEX) $(BUILDOPT) -g $(FONTS)
$(FONTS):
$(LATEXMK) $(XELATEX) $(BUILDOPT) -g $(FONTS)
fonts:
$(LATEXMK) $(XELATEX) $(BUILDOPT) -g $(FONTS)