-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (52 loc) · 1.15 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
MAINFILE = thesis
SRC = $(shell pwd)
BUILD_DIR = _build
# ***********************************************************
# ****** MAIN
.PHONY: all
all: # all do nothing by default
pdf: pdf1 # default
pdf1: pdflatex bib pdflatex
pdf2: pdfdocker
# ***********************************************************
# ****** BUILD RECIPES
# build using docker
pdfdocker:
docker pull dxjoke/tectonic-docker
docker run --mount src=$(SRC),target=/usr/src/tex,type=bind dxjoke/tectonic-docker /bin/sh -c "tectonic --keep-intermediates --reruns 0 thesis.tex; biber thesis; tectonic thesis.tex"
# build using pdflatex
pdflatex:
pdflatex $(MAINFILE)
bib:
biber $(MAINFILE)
# read
read:
evince $(MAINFILE).pdf &
# ***********************************************************
# ****** CLEAN RECIPES
.PHONY: clean
clean:
-rm -f *.aux
-rm -f *.log
-rm -f *.toc
-rm -f *.bbl
-rm -f *.blg
-rm -f *.out
-rm -f make/bib
.PHONY: cleanall
cleanall: clean
-rm -f *.pdf
-rm -f *.ps
-rm -f *.dvi
-rm -rf ./make
-rm -f *.mtc*
-rm -f *.maf
-rm -f *.listing
-rm -f *.loa
-rm -f *.lof
-rm -f *.lot
-rm -f *.bcf
-rm -f *.fls
-rm -f *.pyg
-rm -f *.run.xml
-rm -rf $(BUILD_DIR)