-
Notifications
You must be signed in to change notification settings - Fork 107
/
Copy pathMakefile
63 lines (44 loc) · 2.25 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
BUILD = build
HTML = html
CHAPTERS = ./markdown/%.md
CSS = css/main.css
all:
# Generate pdf of markdown notes
pandoc -o 2015-09-21-hdp-lda-gibbs-sampler.pdf 2015-09-21-hdp-lda-gibbs-sampler.md --verbose
markdown: markdown/dirichlet-distribution-dirichlet-process.md \
markdown/sampling-from-a-hierarchical-dirichlet-process.md \
markdown/nonparametric-latent-dirichlet-allocation.md
markdown/dirichlet-distribution-dirichlet-process.md:
jupyter-nbconvert --to html \ --output-dir=$(MARKDOWN_DIR) \
--output=dirichlet-distribution-dirichlet-process \
2015-07-28-dirichlet-distribution-dirichlet-process.ipynb
markdown/sampling-from-a-hierarchical-dirichlet-process.md:
jupyter-nbconvert --to markdown --output-dir=$(MARKDOWN_DIR) \
--output=sampling-from-a-hierarchical-dirichlet-process \
2015-07-30-sampling-from-a-hierarchical-dirichlet-process.ipynb
markdown/nonparametric-latent-dirichlet-allocation.md:
jupyter-nbconvert --to markdown --output-dir=$(MARKDOWN_DIR) \
--output=sampling-from-a-hierarchical-dirichlet-process \
2015-08-03-nonparametric-latent-dirichlet-allocation.ipynb
html: $(BUILD)/$(HTML)/dirichlet-distribution-dirichlet-process.html \
$(BUILD)/$(HTML)/sampling-from-a-hierarchical-dirichlet-process.html \
$(BUILD)/$(HTML)/nonparametric-latent-dirichlet-allocation.html
$(BUILD)/$(HTML)/dirichlet-distribution-dirichlet-process.html:
jupyter-nbconvert --ExecutePreprocessor.timeout=180 --to html \
--output-dir $(BUILD)/$(HTML) \
--output dirichlet-distribution-dirichlet-process \
--execute 2015-07-28-dirichlet-distribution-dirichlet-process.ipynb
$(BUILD)/$(HTML)/sampling-from-a-hierarchical-dirichlet-process.html:
jupyter-nbconvert --ExecutePreprocessor.timeout=180 --to html \
--output-dir $(BUILD)/$(HTML) \
--output sampling-from-a-hierarchical-dirichlet-process \
--execute 2015-07-30-sampling-from-a-hierarchical-dirichlet-process.ipynb
$(BUILD)/$(HTML)/nonparametric-latent-dirichlet-allocation.html:
jupyter-nbconvert --ExecutePreprocessor.timeout=180 --to html \
--output-dir $(BUILD)/$(HTML) \
--output nonparametric-latent-dirichlet-allocation \
--execute 2015-08-03-nonparametric-latent-dirichlet-allocation.ipynb
clean:
rm -r $(BUILD)
rm -r $(MARKDOWN_DIR)
.PHONY: markdown html