/
Makefile
45 lines (36 loc) · 981 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
SRC=src
TEX=\
$(SRC)/Ln1-AsymptoticOrderGrowth.tex\
$(SRC)/Tiling-Problem.tex\
$(SRC)/stable-matching.tex\
$(SRC)/Ln9-NearestPoints.tex\
$(SRC)/Ln11-LargeIntegerMultiplication.tex\
$(SRC)/dynamic-programming-1.tex\
$(SRC)/LN16.tex\
$(SRC)/Ln17-DP-ShortestPath.tex\
$(SRC)/Ln18-DP-ZeroOneKnapsack.tex\
$(SRC)/Ln19-DP-ContextFreeGrammar.tex\
$(SRC)/Network-flows.tex\
$(SRC)/Image-segmentation.tex\
$(SRC)/Greedy-algorithm.tex\
$(SRC)/Ln15-ApproximationAlgorithm.tex\
$(SRC)/Ln06-MST.tex\
$(SRC)/Ln07-redblue.tex\
$(SRC)/Ln26-P-NP.tex\
$(SRC)/Proof-of-Statute.tex\
$(SRC)/network-flow-base.tex \
$(SRC)/Ln10-MainMaster.tex \
$(SRC)/Ln12-Matrixmultiplicatiofdivideandconqueralgorithms.tex \
$(SRC)/Ln13-Thekthextremum.tex \
all: book.pdf
.PHONY: all clean dev clean-all
book.pdf: book.tex $(TEX)
latexmk -silent book
@cp tmp/book.pdf book.pdf
dev: $(TEX)
latexmk -silent -pvc book
clean:
latexmk -c book
clean-all:
latexmk -C book
rm book.pdf