-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
47 lines (37 loc) · 760 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
.PHONY: pdf clean stats format
default: pdf
PDF_NAME = JUCE-Cookbook.pdf
DIST_DIR = dist
.PHONY: pdf
pdf:
mkdir -p $(DIST_DIR)
gitbook pdf . $(DIST_DIR)/$(PDF_NAME)
.PHONY: html
html:
mkdir -p $(DIST_DIR)
gitbook build . $(DIST_DIR)/html
.PHONY: dev
dev:
gitbook serve --debug
.PHONY: spellcheck
spellcheck:
@which mdspell
mdspell "chapters/**/*.md"
mdspell README.md
mdspell SUMMARY.md
.PHONY: spellcheck-report
spellcheck-report:
@which mdspell
mdspell -r "chapters/**/*.md"
mdspell -r README.md
mdspell -r SUMMARY.md
.PHONY: clean
clean:
rm -rf $(DIST_DIR)
rm -rf _book
.PHONY: stats
stats:
cloc README.md SUMMARY.md chapters
.PHONY: format
format:
find . -iname '*.h' -o -iname '*.hpp' -o -iname '*.cpp' | xargs clang-format -i