This repository has been archived by the owner on Nov 19, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 424
/
Makefile
74 lines (55 loc) · 1.32 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
65
66
67
68
69
70
71
72
73
74
all: build
.PHONY: install-modules
install-modules:
(rm -rf node_modules && npm install) || rm -f package-lock.json && rm -rf ~/.node-gyp && (npm install || (cd node_modules/canvas && node-gyp rebuild))
gitbook install
.PHONY: install-gitbook
install-gitbook:
npm install gitbook-cli@latest node-gyp -g
# install ebook-convert
# on arch: sudo pacman -S calibre
.PHONY: install
install: install-gitbook install-modules
.PHONY: serve
serve:
gitbook serve
.PHONY: build
build:
gitbook build
.PHONY: deploy
deploy:
./deploy.sh
.PHONY: deploy-all
deploy-all: build ebooks ebooks-cp deploy
.PHONY: ebooks-cp
ebooks-cp:
cp ethereum-development-with-go* _book
.PHONY: ebooks
ebooks: pdf epub mobi
.PHONY: pdf
pdf: pdf-en pdf-zh
.PHONY: pdf-en
pdf-en:
gitbook pdf ./en ethereum-development-with-go.pdf
.PHONY: pdf-zh
pdf-zh:
gitbook pdf ./zh ethereum-development-with-go-zh.pdf
.PHONY: epub
epub: epub-en epub-zh
.PHONY: epub-en
epub-en:
gitbook epub ./en ethereum-development-with-go.epub
.PHONY: epub-zh
epub-zh:
gitbook epub ./zh ethereum-development-with-go-zh.epub
.PHONY: mobi
mobi: mobi-en mobi-zh
.PHONY: mobi-en
mobi-en:
gitbook mobi ./en ethereum-development-with-go.mobi
.PHONY: mobi-zh
mobi-zh:
gitbook mobi ./zh ethereum-development-with-go-zh.mobi
.PHONY: plugins-install
plugins-install:
gitbook install