forked from miguelmota/ethereum-development-with-go-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (46 loc) · 1005 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
all: build
.PHONY: install
install:
@npm install gitbook-cli@latest -g
@npm install
@gitbook install
.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 ebook mobi
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
ebook: ebook/en ebook/zh
.PHONY: ebook/en
ebook/en:
@gitbook epub ./en ethereum-development-with-go.epub
.PHONY: ebook/zh
ebook/zh:
@gitbook epub ./zh ethereum-development-with-go-zh.epub
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