forked from joaomlourenco/novathesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (47 loc) · 945 Bytes
/
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
SILENT = -silent
B = template
F = -time -shell-escape -synctex=1 $(FLAGS)
T = $(B).pdf
S = $(B).tex
L = latexmk $(F)
V = open -a skim
AUXFILES=$(shell ls $(B)*.* *.fls | fgrep -v .tex | fgrep -v $(B).pdf | sed 's: :\\ :g' | sed 's:(:\\(:g' | sed 's:):\\):g')
default: pdf
$(T): $(S)
make
.PHONY: pdf
pdf: $(S)
$(L) -pdf $(SILENT) $(B)
.PHONY: xe lua
xe lua: $(S)
$(L) -pdf$@ $(SILENT) $(B)
.PHONY: v view
v view: $(T)
$(V) $(T)
.PHONY: verb verbose
verb verbose:
$(L) -pdf $(B)
.PHONY: 2019 2020
2019 2020 2021:
PATH="/usr/local/texlive/$@/bin/x86_64-darwin/:$(PATH)" $(L) $(X) $(SILENT) $(B)
.PHONY: clean
clean:
@$(L) -c $(B)
@rm -f $(AUXFILES)
gclean:
git clean -fdx -e Scripts -e Fonts
.PHONY: rc
rc:
Scripts/latex-clean-temp.sh
.PHONY: rcb
rcb:
Scripts/latex-clean-temp.sh
rm -rf `biber -cache`
biber -cache
.PHONY: publish
publish:
Scripts/publish.sh
.PHONY: bump
bump:
Scripts/newversion.sh 3
make publish