forked from 3dgen/cppwasm-book
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 555 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 555 Bytes
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
default:
gitbook build
pdf:
gitbook pdf
server:
go run server.go
cover:
convert -resize 1800x2360! cover.png cover.jpg
convert -resize 200x262! cover.png cover_small.jpg
# https://3dgen.cn/cppwasm-book
deploy:
-rm -rf _book
gitbook build
cp -r ./examples/ ./_book/examples/
echo \!"*.wasm" >_book/examples/.gitignore
cd _book && \
git init && \
git add . && \
git commit -m "Update github pages" && \
git push --force --quiet "https://github.com/3dgen/cppwasm-book.git" master:gh-pages
@echo deploy done
clean:
-rm -rf _book