forked from sidcode/bits-pilani-thesis-template-latex
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
44 lines (35 loc) · 1.12 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
# Makefile for BPHC Latex Report Class
LATEXMK=latexmk
LATEXOPT=-jobname="Thesis" -file-line-error
MAIN=main
THESIS=$(MAIN).tex
SOURCES=$(THESIS) Makefile
.PHONY: clean FORCE all
all: $(MAIN).pdf
cont: FORCE
$(LATEXMK) -f -pdf -pvc $(LATEXOPT) $(THESIS)
$(thesis): FORCE
latexmk -pdf -f $(thesis)
$(MAIN).pdf: .refresh $(SOURCES)
$(LATEXMK) -f -pdf $(LATEXOPT) $(THESIS)
clean:
$(LATEXMK) -c $(MAIN).tex
find . \( -name "*.toc" -o -name "*.fdb_latexmk" \
-o -name "*.pdfsync" \
-o -name "*.log" \
-o -name "*.fls" \
-o -name "*.aux" \
-o -name "*.bbl" \
-o -name "*.blg" \
-o -name "*.glo" \
-o -name "*.ist" \
-o -name "*.lof" \
-o -name "*.lot" \
-o -name "*.out" \
-o -name "*.toc" \
\) -print0 | xargs -0 rm -f
FORCE:
touch .refresh
$(MAKE) $(MAIN).pdf
.refresh:
touch .refresh